Apache freezing, How to detect which virtual host is getting hit?
Posted
by mr-euro
on Server Fault
See other posts from Server Fault
or by mr-euro
Published on 2010-05-05T11:09:11Z
Indexed on
2010/05/05
11:18 UTC
Read the original article
Hit count: 239
I have a production server that in the last 24 hours has been hard rebooted 4 times due to freezes. Ping is fine but all other services time-out (Apache, SSHd, etc). I have now diagnosed it to Apache running out of memory due to an exorbitant amount of child processes forking suddenly within seconds of starting Apache. Stopping Apache just after rebooting keeps the server stable again.
My two questions are:
Is there a way to detect which of the vhosts is being suddenly hammered without looking into each vhost's access log one by one?
Is there a way to quickly enable/disable vhosts without commenting (#) them all out in httpd.conf?
© Server Fault or respective owner