Bug #76323 [NEW]: FPM /status reports wrong number of listen queue len

From: Date: Thu, 10 May 2018 03:51:01 +0000
Subject: Bug #76323 [NEW]: FPM /status reports wrong number of listen queue len
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215187@lists.php.net to get a copy of this message
From: china_nzf at 163 dot com Operating system: CentOS release 6.9 (Final) PHP version: 7.0Git-2018-05-10 (Git) Package: FPM related Bug Type: Bug Bug description:FPM /status reports wrong number of listen queue len Description: ------------ When I first request php-fpm status page with command: $ curl www.php-fpm.com/status pool: www process manager: static start time: 10/May/2018:11:36:11 +0800 start since: 2 accepted conn: 1 listen queue: 0 max listen queue: 0 listen queue len: 128 idle processes: 9 active processes: 1 total processes: 10 max active processes: 1 max children reached: 0 slow requests: 0 Then I set the pool to static with listen.backlog to 256, reloading the fpm. I would expect the metric "listen queue len" to be 256. But still will have "listen queue len" report 128. $ sudo kill -USR2 $(cat /var/run/php-fpm.pid) $ curl www.php-fpm.com/status pool: www process manager: static start time: 10/May/2018:11:40:11 +0800 start since: 1 accepted conn: 1 listen queue: 0 max listen queue: 0 listen queue len: 128 idle processes: 9 active processes: 1 total processes: 10 max active processes: 1 max children reached: 0 slow requests: 0 I cat the somaxconn is 512 net.core.somaxconn: $ cat /proc/sys/net/core/somaxconn 512 Pool configuration: $ grep -v ";" ~/php7/etc/php-fpm.d/www.conf | grep -Ev "^$" [www] user = fpm group = fpm listen = 127.0.0.1:9000 listen.backlog = 256 pm = static pm.max_children = 10 pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 10 pm.max_requests = 500 pm.status_path = /status slowlog = logs/$pool.log.slow request_slowlog_timeout = 1 env[HOSTNAME] = $HOSTNAME env[PATH] = /usr/local/bin:/usr/bin:/bin env[TMP] = /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp Finally, I want to know the details. Expected result: ---------------- Metric "listen queue len" from /status should be 256. Actual result: -------------- Metric "listen queue len" from /status should is 128. -- Edit bug report at https://bugs.php.net/bug.php?id=76323&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76323&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76323&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76323&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76323&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76323&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76323&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76323&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76323&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76323&r=support Expected behavior: https://bugs.php.net/fix.php?id=76323&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76323&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76323&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76323&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76323&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76323&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76323&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76323&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76323&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76323&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76323&r=mysqlcfg

« previous php.bugs (#215187) next »