Apache CPU usage stays at 100% even when there are no requests

Posted by Leirith on Server Fault See other posts from Server Fault or by Leirith
Published on 2011-01-11T22:55:04Z Indexed on 2011/01/11 23:55 UTC
Read the original article Hit count: 252

Filed under:
|
|
|
|

Hi,

I've been running the Apache HTTP server benchmarking tool (ab) on my new Apache server to test performance. I noticed that with a command like the following:

ab -n 100000 -c 1000  http://www.mysite.com/

The CPU is used 100% by the apache2 processes during the testing. When the test concludes, usually with the following error just before the last requests are made:

apr_poll: The timeout specified has expired (70007)
Total of 99960 requests completed

the CPU usage remains at 100%, and it's all being consumed by apache.

I am using the worker MPM with and running PHP with mod_fcgid.

Any advice as to why this is or what can be done to stop it would be appreciated.

© Server Fault or respective owner

Related posts about apache

Related posts about php