Wade Preston Shearer wrote: > My server goes down from time to time. When it does, it is still on but none > of the services respond (no response from SSH, Apache, ping, etc). The server > is just a web server. Each time, I reboot it and it comes back up just fine. > I'm trying to figure out what keeps taking it down. I've wondered if it was a > bad hard drive in the RAID, but after looking at the Apache logs just now and > seeing a plethora of memory leak notices, I'm wondering if it's a memory > issue. Would a bad script that is leaking memory cause the machine to run out > of memory and then freeze up or cause all of the services to become > non-responsive? The answer seems very likely but I would be interested in any > pointers as to how to narrow this problem down. >
Do you have access to a login console (like, Ctrl+Alt+F1) after it goes down? If so, you can sometimes see useful info being spewed there. This happened to one of my servers, and it was indeed running out of memory. If you see anything about "OOM", that's what's going on. In my case, Apache 2 was running out of memory because my MaxClients (and related stuff in the apache config) were too high for the amount of RAM I had. --Dave /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
