Why might apache2 use 100% of CPU at startup?

Posted by QuantumMechanic on Server Fault See other posts from Server Fault or by QuantumMechanic
Published on 2012-10-26T20:57:14Z Indexed on 2012/10/26 23:04 UTC
Read the original article Hit count: 383

Filed under:
|
|

This is apache 2.2.14 on SLES9.

Out of nowhere (i.e. it had been working fine for ages) I am seeing apache2 suddenly start using 100% of the CPU at startup, and never completing startup. Nothing is getting written to /var/log/error_log (when it did back when things were OK). ps only shows the main httpd process and not any of the spawned threads. When things were OK, it would show the spawned threads.

So it appears httpd is going into some sort of infinite loop right at startup and isn't even completing startup. It's not an issue of being overloaded by connections -- this happens even when nothing is trying to contact it.

The config files haven't changed (or at least they haven't changed in a way that changed their last-modified time).

I've tried added -e debug -E /var/log/apache2/startup_info to the command line, but nothing is put in the file.

Any ideas what could be happening?

© Server Fault or respective owner

Related posts about linux

Related posts about apache2