Why does the Apache server keep stopping

apache-2.2

I have a VPS on CentOS that uses Apache to host my Rails site.

Every couple of days or so I am finding that the web server has stopped. I have to log in and restart it.

From what I can see I have a 0 byte error log, so no errors are being reported. From the access log, I can't see any traffic spikes. My site isn't popular at all anyway.. perhaps 1-5 visits per day!

I'm not sure where else to look. How can I find out what's going wrong?

Best Answer

Most likely is that you're running out of memory and the kernel is killing httpd. Do you see OOM messages in the system log? (Not just the apache log.)