|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68607 PHP-FPM pool status of process last-request-cpu
Submitted: 2014-12-15 09:16 UTC Modified: 2016-03-22 17:05 UTC
Avg. Score:3.8 ± 1.0
Reproduced:2 of 4 (50.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: terry dot lee dot core at gmail dot com Assigned:
Status: Not a bug Package: FPM related
PHP Version: 5.4.35 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
26 - 21 = ?
Subscribe to this entry?

 [2014-12-15 09:16 UTC] terry dot lee dot core at gmail dot com
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.
; 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" ?>
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.. 



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-22 17:05 UTC]
-Status: Open +Status: Not a bug
 [2016-03-22 17:05 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

The last request cpu metric will tell which percentage of the total cpu time was used in the last request. The reason you get values above 100% is because it takes processes on all cores into account, whereas the 100% is for one core only.

Since you also asked the question on Stack Overflow, please find the details at
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 22 23:03:34 2022 UTC