Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 05, 2012 1:25 pm 
Offline
Senior Member

Joined: Fri May 20, 2011 2:45 am
Posts: 63
Location: Spain
I was having high consumptions of cpu. How could I know what was being executed at that time of high cpu consumption?


Top
   
PostPosted: Thu Jul 05, 2012 5:33 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
There really isn't a way to find out after the fact. If the issue happened at about 0:00 UTC on July 1, 2012, it's possible you hit a bug caused by the leap second being added to UTC to account for the slowing rotation of the Earth.

- http://serverfault.com/questions/403732/anyone-else-experiencing-high-rates-of-linux-server-crashes-today

-Tim

Edit: If you did in fact hit this bug, rebooting should clear you right up.

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
PostPosted: Fri Jul 06, 2012 10:48 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
If you don't mind a bit of scripting, you can cron something every minute or so using something like

top -bn1

within the script and then parse through the resulting text, writing to a file when the script finds something interesting to you. I prefer Python, so I might use

os.popen('top -bn1')

and parse the stdout result of os.popen() as needed.

James


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