Bug #76003 [PATCH]: FPM /status reports wrong number of active processes

From: Date: Mon, 11 Apr 2022 17:07:11 +0000
Subject: Bug #76003 [PATCH]: FPM /status reports wrong number of active processes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240842@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76003&edit=1 ID: 76003 Patch added by: bukka@php.net Reported by: enrico dot stahn at gmail dot com Summary: FPM /status reports wrong number of active processes Status: Assigned Type: Bug Package: FPM related Operating System: Alpine PHP Version: 7.1.14 Assigned To: bukka Block user comment: N Private report: N New Comment: The following pull request has been associated: Patch Name: Fix bug #76003: FPM /status reports wrong number of active processe On GitHub: https://github.com/php/php-src/pull/8331 Patch: https://github.com/php/php-src/pull/8331.patch Previous Comments: ------------------------------------------------------------------------ [2022-04-07 14:08:00] bukka@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#240842) next »