Bug #76003 [NEW]: FPM /status reports wrong number of active processes
| From: | enrico dot stahn at gmail dot com | Date: | Sat, 24 Feb 2018 04:23:55 +0000 |
| Subject: | Bug #76003 [NEW]: FPM /status reports wrong number of active processes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214096@lists.php.net to get a copy of this message | ||
From: enrico dot stahn at gmail dot com
Operating system: Alpine
PHP version: 7.1.14
Package: FPM related
Bug Type: Bug
Bug description:FPM /status reports wrong number of active processes
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 bug report at https://bugs.php.net/bug.php?id=76003&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76003&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76003&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76003&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76003&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76003&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76003&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76003&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76003&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76003&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76003&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76003&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76003&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76003&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76003&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76003&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76003&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76003&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76003&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76003&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76003&r=mysqlcfg