Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 11, 2011 7:04 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
Hey.

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 :lol: )

Any help will be GREATLY appreciated.

Thanks,
Alex[/b]


Top
   
 Post subject:
PostPosted: Mon Jul 11, 2011 10:19 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
A CPU spike by a single process wouldn't impact the performance of your server, since you've got four processors (properly maxed out is 400%). More likely you're OOMing (running out of memory), which can cause the symptoms you describe (CPU spike and unresponsive system).

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.


Top
   
 Post subject:
PostPosted: Mon Jul 11, 2011 10:21 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
Hey.

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


Top
   
 Post subject:
PostPosted: Mon Jul 11, 2011 11:01 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
That's what I'd do, but I'm no expert.


Top
   
 Post subject:
PostPosted: Mon Jul 11, 2011 11:15 am 
Offline
Senior Newbie

Joined: Mon Jul 11, 2011 6:59 am
Posts: 12
AOL: 96+Coombe+Dale
Location: United Kingdom
haha! me neither :D thanks !


Top
   
 Post subject:
PostPosted: Mon Jul 11, 2011 3:50 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
If you did an upgrade before it started, you can try upgrading again after shutting down all your server software, or you can try to see about downgrading the memory hog reported by top (NOT recommended, much better to shut it down if you can, and replace it if possible and if upgrading again doesn't help).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group