0

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?

2
  • What is syslog showing when you shutdown Apache and start it back up clean? After you issue the stop command, confirm with ps that all processes are stopped before starting it back up. Post your findings
    – bmurtagh
    Oct 26, 2012 at 21:17
  • Our Apache isn't configured to log to syslog and even when working normally it does not log anything there. ps shows that the httpd process does go away when the apache shutdown command is issued. Oct 27, 2012 at 5:53

1 Answer 1

0

It turns out the problem was that apache's SSL session cache file got corrupted. Once we stopped apache again and deleted the file everything was fine again.

1
  • Any information about the file other than it was "some" file on your system?
    – gparent
    Nov 14, 2012 at 0:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .