Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perfmon-like for Linux?

In windows there is perfmon to monitor various performances aspects (called counters) of the system.

Is there a perfmon-like for Linux?

especially, in interested in...

  • CPU usage (total/per process/in kernel)
  • Memory usage (total/per process/in kernel)

...Is it possible to store this information in files for future analysis?

like image 954
Daniel Silveira Avatar asked Dec 05 '08 23:12

Daniel Silveira


2 Answers

DStat is my personal favorite for such tools. From it's page :

  • Combines vmstat, iostat, ifstat, netstat information and more
  • Shows stats in exactly the same timeframe
  • Enable/order counters as they make most sense during analysis/troubleshooting
  • Plugin framework to handle additional counters. (Wifi Quality, for instance)

I love it! It's definitely more flexible (and easier to use) than sar, we just have dstat writing to a file on a regular basis.

like image 183
Rizwan Kassim Avatar answered Nov 10 '22 05:11

Rizwan Kassim


The program "top" does most of this. It does not handle network traffic though.

Edit:

If you need to log this information for post processing/analysis you can use the standard package "sar" to do this. It supports MANY different performance numbers including: disk, cpu, memory, network, etc.

sar manpage

like image 40
grepsedawk Avatar answered Nov 10 '22 07:11

grepsedawk