LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2013, 10:59 PM   #1
bloodsavi
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
High CPU usage


Hi everyone, For some reason my dedicated server was down for several hours yesterday. I ran sar and found out that around 6-7AM the CPU usage was more than 250% How can I find out the process which caused this ? I'm new here Please help me out. Thank you
 
Old 04-23-2013, 12:29 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I don't think sar provides that info.
Its a little difficult to post-analyse stuff like that if you weren't already setup to record the relevant info.
However, if you search through the various logfiles (/var/log/...), you should be able to see what was running in that hour.
That will give you a start.
There are various monitoring tools available eg http://collectl.sourceforge.net/
A quick way of finding out next time, is to setup top to run (in advance) in batch mode http://linux.die.net/man/1/top between 6-7am.

Last edited by chrism01; 04-23-2013 at 12:32 AM.
 
Old 04-23-2013, 12:33 AM   #3
bloodsavi
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you very much Chris for the quick reply. I'll go through the tools in http://collectl.sourceforge.net/. Thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 10:24 AM
High load and high cpu kernel usage enid Linux - Server 8 09-30-2010 04:33 AM
CPU usage too high! rock.k Linux - Newbie 4 03-01-2008 05:48 AM
High CPU usage ?! Why? skate Linux - Software 1 04-11-2007 06:55 AM
High Cpu usage untak Debian 21 01-23-2007 07:21 AM


All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration