PHP processes run one at a time, always taking 100% of one core

Posted by Derek Kurth on Server Fault See other posts from Server Fault or by Derek Kurth
Published on 2012-03-24T17:03:50Z Indexed on 2012/03/24 17:31 UTC
Read the original article Hit count: 223

We have seven websites written in PHP running on a Windows 2008 server with IIS 7.5. They are all very slow right now.

When I look in Task Manager, I see around 10 php-cgi.exe processes, and they are all taking 0% of the CPU, except one, which is taking 25%. It's a quad-core server, so it's taking 100% of one core.

If I watch for a few seconds, the process taking 25% will go to 0%, and a different php-cgi.exe process will jump to 25%. So all the php-cgi.exe processes are just lined up, waiting on a single core, and each process uses 100% of the processor when it can.

Each of the 7 sites is in its own application pool in IIS, and we're using FastCGI. The PHP version is 5.3.

Any ideas? Thanks!

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about php