Server environment: redhat linux 5.5, nginx, phpfastcgi
In this environment, the general php-cgi operation is very stable, but I also encountered php-cgi taking too much cpu resources and causing the server to respond too slowly. The reason why the php-cgi process encountered too much cpu resources is:
Some php extensions are compatible with the php version. There is a problem: the practice proves that eAccelerater is compatible with some php versions. The specific performance is that after running the php-cgi process, it runs for more than 10 minutes, which is very slow, but the static resource access is very fast and the server load is normal (indicating that nginx does not have The problem, but the problem of the php-cgi process), the solution is to ban the eAccelerater module from php.ini, and then restart the php-cgi process.
There may be an infinite loop in the program, causing the server to be overloaded (using the top command to view the load up to 100+). You need to use the Linux proc virtual file system to find the specific problem program.
php program unreasonable use of session, this happens in the open source microblogging dog program, the specific performance is that a small number of php-cgi process (no more than 10) cpu usage rate of 98% or more, server load Between 4-8, the solution to this problem still needs to find out the reason by using the Linux proc file system.
There are operations in the program that are too time consuming and impossible to complete (or problems with the program).
More related reading "The server php-cgi.exe process, resulting in 100% CPU solution"
First, Putty introduction Putty is a remote login tool, it can be very convenient to log in to the
Today we are here to communicate on the speed of the website. Improving the speed
Security dog service cloud is a server security management cloud platform, it has a lot of useful
from basic prevention, effective protection of backup Today, the protection of important data is ge
Solve the failure of the cwRsync server service startup
Serv-u port number modification method
Solving the Modules Installer service does not start
What do I do if I find unauthorized users?
How to configure Win 2003 DNS server
Detailed Windows 2000 system log and its deletion method
Automatic backup of website and database scripts under CentOS
How to open the server Mcrypt.so encryption library
How to solve Bad Request (Invalid Hostname)?
Set up a shared server with 2003 01
Win7 IIS 7 ASP gets the system date format as a slash solution
Three major ways to increase network available bandwidth for virtual machines
Win8 system positioning function open and use tutorial
Tai Chi jailbreak tool iOS8.1.3-8.4 perfect jailbreak tutorial
Win10 forced automatic update (home version) Keng N card user
Frequently Asked Questions about Windows XP SP3
What should I do if the computer boot prompt does not find dbgeng.dll?
Solve win8.1 dial-up Internet 651 error
How to deal with Win10 upgrade preview version 10061 when it is updated to 100% stuck?
How to set the Windows 8 system mouse pointer style
What does it mean to browse without a trace? How to set it up?
How to distinguish between 64-bit and 32-bit operating systems in Win10 system