Perfmon-like for Linux?
Asked Answered
D

6

17

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?

Danyelledanyette answered 5/12, 2008 at 23:54 Comment(0)
M
11

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

Miltonmilty answered 5/12, 2008 at 23:57 Comment(3)
Is it possible to monitor and store those informations in files to analysis?Danyelledanyette
"htop" is a nicer, more modern version of top, I suggest to try that.Latin
top is great.. for just the basic system level junk, but Perfmon kicks ass because it provides tool for which ANY software (OS, libraries, apps) can supply performance counters that can be sampled and visualized in Perfmon. Sad that Linux has not had this but it is probably symptom of the chaotic practice that we call "open source"Nab
P
13

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.

Pharyngoscope answered 6/12, 2008 at 0:10 Comment(0)
M
11

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

Miltonmilty answered 5/12, 2008 at 23:57 Comment(3)
Is it possible to monitor and store those informations in files to analysis?Danyelledanyette
"htop" is a nicer, more modern version of top, I suggest to try that.Latin
top is great.. for just the basic system level junk, but Perfmon kicks ass because it provides tool for which ANY software (OS, libraries, apps) can supply performance counters that can be sampled and visualized in Perfmon. Sad that Linux has not had this but it is probably symptom of the chaotic practice that we call "open source"Nab
S
3

If you're looking for a way to monitor this stuff on servers, you should be looking at a monitoring framework like Zabbix. This will let you monitor all sorts of interesting things about your system and, with plugins, your application - as well as storing trend data for a period of time, and letting you alert on trigger thresholds and such.

Sob answered 7/12, 2008 at 10:57 Comment(0)
C
2

i use nmon. It gives you a very clear view.. Also you can select CPU, Network, Kernel, Disk IO load, top processes etc in a single page. This makes easily to relate things, analyze the performance issues.

Coth answered 1/12, 2012 at 6:51 Comment(0)
S
1

I am a huge fan of gkrellm, which packs a huge amount of information into a small vertical bar on your monitor. It's configurable; I get CPU use, disk use, memory use, temperatures, network traffic, and more. When my system gets slow I know instantly if it's CPU, disk, memory, or net connection. The information design is pretty good; I would say the amount of information per pixel is high. And unlike 'top' you can usually afford to leave it open on one side of your screen. ('top' consumes too much screen real estate to be left open all the time.)

Sobranje answered 6/12, 2008 at 1:41 Comment(0)
A
1

The main things you are looking for can easily be seen using "top" with its various options. Ofcourse as @grepsedawk says it, sar works great for debugging. If you need to monitor it on an interface however, there are a number of monitoring tools available SeaLion, New Relic, munin, etc. These also let you check other parameters like disk usage, top processes taking memory, taking CPU,etc. To me SeaLion seems good for my use and since you require logging as well, you could try it. You needn't save these as files for future analysis. They are present in a great interface where you can jump to any time to view the output at that time.

P.S. If you still need to store them as files, that is also provided by sealion

Appellant answered 12/12, 2013 at 12:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.