On several offline servers that are not very busy, the number of PHP-FPM processes is found to be more than 500, and some processes run for several months.
The following troubleshooting was performed to determine if there is a problem with the
First, process tracking
The code is as follows
Copy Code
# Top//Find process PID with high CPU usage# Strace-p PID//tracking process# LL/PROC/PID/FD//See which files the process is working on
There will be
PHP-FPM configuration and usage summary, php-fpm configuration Summary
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
PHP-FPM configuration and use
Php-FPM configuration in nginx tutorialNginx can directly call FPM to drive php and then discard apache. Let's not talk about the reason.First download the php5.4 installation package.According to others The code is as follows:Copy code .
[Switch] what are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? Reprinted from:
Http://hi.baidu.com/fxchby/blog/item/c041ef0d6c510bf3aa6457dd.html
Http://www.mike.org.cn/articles/what-is-cgi-fastcgi-php-fpm-spawn-fcgi/
What is CGI?
CGI is
PHP-FPM Configuration and Usage Summary:PHP-FPM is a PHP fastcgi manager, which is actually a patch of PHP source code, designed to introduce fastcgi process management into the PHP package, we have to patch it into the PHP source code, and then
Fault detection1. Other first, top look at the CPU, RAM, swap which is more tense.By analysis, you can see a total of 602 processes, of which 601 processes hibernate. This seems to be something wrong, the kernel process is about 80, plus memcached,
PHP-FPM for performance optimization and PHP-FPM performance optimization
Brief introduction:
PHP-FPM is a PHP FastCGI manager, General Nginx above the PHP program will throw PHP program to PHP-FPM to parse. All right, that's it!
PHP 5.4 began to
Comparison of CGI, FastCGI, php-CGI, PHP-FPM, and Spawn-FCGI in PHP environment configuration ?. What is CGICGI? it is a tool called "CommonGatewayInterface". the HTTP server is used to "talk" with programs on your or other machines. The program
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? What is CGI?
CGI is a Common Gateway Interface. it is a tool for the HTTP server to "talk" with programs on your or other machines, the program must run on the network server.
CGI can be
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.