Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would ask if there is some linux tool that can track load of each application process and save it to the log file. When something in linux system "eat" CPU to 100% and I want see what happend and which application was consuming too much CPU. Is that possible see those information after system reboot? I read something about atop,sar, and so on application. Have somebody real practise with that applications? Can someone post the log file how it looks like - I would like to see what is real output. Thanks for any advice.

Best regards, TheTechnic

share|improve this question
    
serverfault.com/questions/318588/… –  quanta Oct 17 '11 at 8:28
add comment

1 Answer

dstat http://dag.wieers.com/home-made/dstat/ is exactly what you want.

Invoking dstat like this dstat -vM topcpu 5 will print out (every 5 seconds) some basical system stats (-v) + the process currently using the most CPU (-M topcpu).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.