Today inadvertently see colleagues in the state of PHP-FPM, and then looked under, in Nginx add a location to be able to, the specific settings are as follows:
Location ~ ^/status$ {include fastcgi_params; Fastcgi_pass 127.0.0.1:9000; Fastcgi_param script_filename $fastcgi _script_name; }
Then open the option in php-fpm.conf
Pm.status_path =/status
In this case, by http://domain/status can see the current PHP situation, the previous know can be configured location to see the state of Nginx, did not expect to see the state of php-fpm, really learning, and see the status as follows:
Pool:www PHP-run groups
How the process manager:dynamic php-fpm run
Start time:04/jun/2012:16:05:32 +0800 Starting Time
Start since:5932
Accepted conn:65678 Accept Link
Listen queue:0 Listening queue
Max Listen queue:1 Max listening queue
Listen Queue len:128 listener queue len
Idle processes:82 Free Process
Active Processes:4 Active Process
Total processes:86 Process
Max Active PROCESSES:25 Max active process
Max children reached:0 The largest child process reached
With this, you can view the status of the php-fpm in real time, and then optimize the PHP-FPM
Real-time monitoring of PHP-FPM status