Real-time monitoring of PHP-FPM status

Source: Internet
Author: User
Tags fpm

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.