|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76003 FPM /status reports wrong number of active processes
Submitted: 2018-02-24 04:23 UTC Modified: 2022-04-07 14:07 UTC
Avg. Score:4.3 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:3 (60.0%)
From: enrico dot stahn at gmail dot com Assigned: bukka (profile)
Status: Closed Package: FPM related
PHP Version: 7.1.14 OS: Alpine
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: enrico dot stahn at gmail dot com
New email:
PHP Version: OS:


 [2018-02-24 04:23 UTC] enrico dot stahn at gmail dot com
Having set the pool to static with max_children to 5 I would expect the metric "active processes" to be 5 or below. Sending 10 concurrent requests will have "active processes" report more than 5 (e.g. 10, 12, 25, ...).

Is this valid behaviour?

Pool configuration:

# grep -v ";" /usr/local/etc/php-fpm.d/www.conf | grep -Ev "^$"
user = www-data
group = www-data
listen =
pm = static
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.process_idle_timeout = 10s
pm.max_requests = 500
pm.status_path = /status
ping.response = pong
slowlog = log/$pool.log.slow
request_slowlog_timeout = 0
request_terminate_timeout = 0

Expected result:
Metric "active processes" from /status should be below 5.

Actual result:
Metric "active processes" from /status is above 5.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-06 03:59 UTC] enrico dot stahn at gmail dot com
Possibly related to
 [2022-04-07 14:08 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka
 [2022-04-07 14:08 UTC]
I can confirm that this is a bug and was able to recreate using following scripts:

I'm just looking to reason for that and hopefully will have a fix soon.
 [2022-04-11 17:07 UTC]
The following pull request has been associated:

Patch Name: Fix bug #76003: FPM /status reports wrong number of active processe
On GitHub:
 [2022-04-12 22:16 UTC]
Automatic comment on behalf of bukka
Log: Fix bug #76003: FPM /status reports wrong number of active processe
 [2022-04-12 22:16 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 13 15:01:30 2024 UTC