Linode CPU spike causing server to crash
I'm currently suffering from a few server crashes of late (3 in as many weeks) and they were all caused by a CPU spike (over 100%!). I haven't made any major changes or updates to my server in that time.
I want to fix the problem but I'm not exactly sure where to start. I've looked in nginx access logs but I don't think that will give me the answer..
Could someone please point me in the right direction? I've looked at the kern.log but I don't really know what I'm looking for (being a bit of a noob
Any help will be GREATLY appreciated.
Thanks,
Alex
5 Replies
You're running nginx, so that tends to rule out the usual suspect (Apache). You might look at the syslog and check for out of memory errors. If that's the case, one thing that might be handy is to connect via SSH (or lish) and run 'top' sorted by memory (capital M key). That way, when the server dies, the last thing on the screen will be the most memory hogging processes.
Thanks very much for your reply! Do you suggest running top constantly.. until it dies.. I suppose so as I can't predict when it will crash!
Al