Bug #76003 [Opn->Asn]: FPM /status reports wrong number of active processes
Edit report at https://bugs.php.net/bug.php?id=76003&edit=1
ID: 76003
Updated by: bukka@php.net
Reported by: enrico dot stahn at gmail dot com
Summary: FPM /status reports wrong number of active processes
-Status: Open
+Status: Assigned
Type: Bug
Package: FPM related
Operating System: Alpine
PHP Version: 7.1.14
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
I can confirm that this is a bug and was able to recreate using following scripts:
https://github.com/bukka/php-util/tree/92a02d92914821bd194867360d563ed5a462a80f/tests/fpm/status-wrong-active-procs
I'm just looking to reason for that and hopefully will have a fix soon.
Previous Comments:
------------------------------------------------------------------------
[2018-09-06 03:59:04] enrico dot stahn at gmail dot com
Possibly related to https://bugs.php.net/bug.php?id=76109
------------------------------------------------------------------------
[2018-02-24 04:23:53] enrico dot stahn at gmail dot com
Description:
------------
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 "^$"
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76003&edit=1
Thread (5 messages)