Bug #68607 [NEW]: PHP-FPM pool status of process last-request-cpu
| From: | terry dot lee dot core at gmail dot com | Date: | Mon, 15 Dec 2014 09:16:02 +0000 |
| Subject: | Bug #68607 [NEW]: PHP-FPM pool status of process last-request-cpu | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-189066@lists.php.net to get a copy of this message | ||
From: terry dot lee dot core at gmail dot com
Operating system: Linux
PHP version: 5.4.35
Package: FPM related
Bug Type: Bug
Bug description:PHP-FPM pool status of process last-request-cpu
Description:
------------
I have installed a PHP and enable the FPM function, but i feel uncertain
about the FPM status data(like the process last-request-cpu), below is
my php-fpm.conf detail.
[www]
; Unix user/group of processes
user = www-data
group = www-data
; Chdir to this directory at the start.
chdir = /
; The address on which to accept FastCGI requests.
listen = /var/run/phpfpm/$pool_php5-fpm.sock
; Set listen(2) backlog. A value of '-1' means unlimited.
listen.backlog = -1
; Set permissions for unix socket.
listen.mode = 0666
; Pool configuration.
pm = dynamic
pm.max_children = 10
pm.start_servers = 4
pm.min_spare_servers = 2
pm.max_spare_servers = 6
pm.max_requests = 500
; The URI to view the FPM status page.
pm.status_path = /status
; The ping URI to call the monitoring page of FPM.
ping.path = /ping
; The access log file.
access.log = /var/log/phpfpm/$pool_php-fpm.access.log
; The access log format.
access.format = %R - %u %t "%m %r%Q%q" %s %f %{mili}d %{kilo}M %C%%
; The log file for slow requests.
slowlog = /var/log/phpfpm/$pool_php-fpm.log.slow
; The timeout for serving a single request after which a PHP backtrace
will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
request_slowlog_timeout = 5
; Limits the extensions of the main script FPM will allow to parse.
security.limit_extensions = .php
--------------------------------------------------------------
I have enable the pm.status_path = /status to view the FPM status result
as below:
<?xml version="1.0" ?>
<status>
<pool>www</pool>
<process-manager>dynamic</process-manager>
<start-time>1418352728</start-time>
<start-since>21936</start-since>
<accepted-conn>20</accepted-conn>
<listen-queue>0</listen-queue>
<max-listen-queue>0</max-listen-queue>
<listen-queue-len>0</listen-queue-len>
<idle-processes>3</idle-processes>
<active-processes>1</active-processes>
<total-processes>4</total-processes>
<max-active-processes>1</max-active-processes>
<max-children-reached>0</max-children-reached>
<slow-requests>0</slow-requests>
<processes>
<process>
<pid>11</pid>
<state>Running</state>
<start-time>1418352728</start-time>
<start-since>21936</start-since>
<requests>5</requests>
<request-duration>5391</request-duration>
<request-method>GET</request-method>
<request-uri>/status?xml&full</request-uri>
<content-length>0</content-length>
<user>-</user><script>-</script>
<last-request-cpu>0.00</last-request-cpu>
<last-request-memory>262144</last-request-memory>
</process>
<process>
<pid>12</pid>
<state>Idle</state>
<start-time>1418352728</start-time>
<start-since>21936</start-since>
<requests>5</requests>
<request-duration>3365</request-duration>
<request-method>GET</request-method>
<request-uri>/status?xml&full</request-uri>
<content-length>0</content-length>
<user>-</user><script>-</script>
<last-request-cpu>297.18</last-request-cpu>
<last-request-memory>262144</last-request-memory>
</process>
</processes>
</status>
I dont know why the element last-request-cpu value 297.18 is more than
100, means use the cpu 297.18% or what's the last-request-cpu unit..
Thanks
--
Edit bug report at https://bugs.php.net/bug.php?id=68607&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68607&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68607&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68607&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68607&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68607&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68607&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68607&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68607&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68607&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68607&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68607&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68607&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68607&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68607&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68607&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68607&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68607&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68607&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68607&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68607&r=mysqlcfg