Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 01, 2010 10:09 pm 
Offline

Joined: Sat May 01, 2010 9:39 pm
Posts: 1
WLM: brian.platinumc@gmail.com
Location: Beijing
I've received this automated message from Linode:
"
Your Linode, has exceeded the notification threshold (90) for CPU Usage by averaging 106.5% for the last 2 hours.
"
I checked and there was a massive increase in CPU usage I open a support ticket and asked ".....I'm concerned what could be causing this spike. Do you have any way of finding this out, are we being hit with spam or used to flow emails or something similar? is there a way of checking this?..."

Support suggested: "...You may want to ask the active user community for more assistance and avenues of investigation...."

So here I am, I'm new to this Server hosting, VPS and Linode, and trying to come to grips with it all.

Can anybody advise me on these two questions
is there a way of finding out what caused the spikes?
is the software I can install to protect and monitor for this?

We have LAMP with Debian 5

Thanks


Top
   
 Post subject:
PostPosted: Sat May 01, 2010 10:28 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
The library has a couple of articles to get you started.

http://library.linode.com/server-monitoring

Plus there's been more then a few threads in the forum about debugging CPU/RAM ran wild problems.


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 3:35 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
You can run top or ps and check out what's actually using the CPU.


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 6:27 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Try installing htop it nicely colours everything so it's easier to read.


Top
   
 Post subject:
PostPosted: Tue May 04, 2010 11:18 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
One interesting data point I've seen while going over these graphs in tickets has to do with the fact that a Linode has access to four cores. As a result, CPU usage can go up to 400% average in theory.

What's interesting about that is a single threaded program, in a tight spin, will consume exactly 100% of CPU on your graph with little variance. If, all of a sudden, your CPU pegs at a multiple of 100% (even 200% or 300%) and it doesn't change at all, have a look at ps or htop and look for a process using 100% CPU. I've noticed it happening when a program crashes, and sits there spinning hard.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


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


Who is online

Users browsing this forum: No registered users and 2 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:  
RSS

Powered by phpBB® Forum Software © phpBB Group