Tuesday, October 14, 2003

Killing Apache zombie processes

Somehow, issueing an "apachectl stop" killed off the parent and left about 50 errant child processes on my box. Issueing "apachectl stop" again only threw back an errror about a missing httpd pid (because the parent is now dead)

Here's how you can kill all those child httpd processes in one swoop:

ps -ax | grep httpd | grep -v grep | awk '{print $1}' | xargs kill -KILL