php-fpm provides a status page for those who are interested. It looks like this:
curl http://localhost/server-status
pool: default
process manager: dynamic
start time: 11/Dec/2014:17:51:33 -0500
start since: 61383
accepted conn: 4682
listen queue: 0
max listen queue: 0
listen queue len: 0
idle processes: 11
active processes: 1
total processes: 12
max active processes: 2
max children reached: 0
slow requests: 3
How do I access this information from php? Please don't tell me to use curl to request the status page from localhost.
fpm_get_status()
returns an associative array of status information, including the summary. It is only available while running in the FPM SAPI.