Apache spinning

Several times a day I find my RaQ has an Apache process spinning and consuming all the available CPU. The Apache version is whatever comes with a RaQ 3 (1.3 I think). The only thing I've added is servlets via tomcat connected with mod_jk. There are some perl cgi programs but they're very little used and not likely the culprit. Any ideas on why the process would spin and/or how I can go about determining what's causing it? The site serves about 50K pages a day so it's kind of hard to poke through the logs manually. There's nothing obvious in the error log.

I'm planning to write a little watchdog program that can check for runaway httpd processes and kill them off. If anyone has a script to do something similar I'd love to see it.

 

 

 

 

Top