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?
A few system details:
Fedora 10, x86_64, PHP 5, Apache 2.2