Dstat- Monitor Linux Server Performance

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/dstat-monitor-linux-server-performance/
PINTEREST
PINTEREST
INSTAGRAM

There are a lot of linux server monitoring tools in the wild. They have strong and weak sides againts 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 simultaneusly, list ordering, exporting to csv.

How to Install dstat in Linux

dstat can be get from official distro 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  Yum Usage

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.

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.

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

List dstat Plugins

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

 

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/dstat-monitor-linux-server-performance/
PINTEREST
PINTEREST
INSTAGRAM

Leave a Reply

Your email address will not be published.