Dstat- Monitor Linux Server Performance – POFTUT

Dstat- Monitor Linux Server Performance

There are a lot of Linux server monitoring tools in the wild. They have strong and weak sides against others. To get more about Linux server monitoring dstat can be used.

Features of dstat are joining information from tools like vmstat, netstat, mpstat, displaying statistics simultaneously, list ordering, exporting to CSV.

How to Install dstat in Linux

dstat can be get from official ditributions repositories. In this tutorial we will use fedora but Ubuntu, Debian has same operations too.

Installing is fast because it is small as 197k.

dstat Help

Quick help can be get with the -h parameter to the dstat command

Running dstat

Running dstat without arguments gives we total cpu usage, dsk read/write, network send/receive, paging and interrupts.

LEARN MORE  How To Install and Setup SNMP Service or Daemon For Linux

Running dstat

Running dstat

Getting Memory Related Info with dstat

By providing --vmstat argument we can get information about memory related used, buffer, cache, read/write information like below.

Getting Memory Related Info with dstat

Getting Memory Related Info with dstat

As you see memory usage is very low and about 62M.

Get Top Process with dstat

dstat can get top process and memory using application with  --top-cpu and --top-mem parameters.

Get Top Process with dstat

Get Top Process with dstat

As you see top CPU changes over time. Null entry means that dstat is top process.

Export From dstat to Csv

dstat entries can be exported to the CSV or similar formats. Here is an example that exports 5 entries in 1 second interval into poftut.csv

Export From dstat to Csv

Export From dstat to Csv

Export From dstat to Csv

Export From dstat to Csv

List dstat Plugins

dstat has a lot of plugins to use like nfs, sm rpc info. To get full list use --list  parameter.

List dstat Plugins

List dstat Plugins

Dstat- Monitor Linux Server Performance Infographic

Dstat- Monitor Linux Server Performance Infographic

Dstat- Monitor Linux Server Performance Infographic

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)