{"id":711,"date":"2016-10-08T10:09:59","date_gmt":"2016-10-08T14:09:59","guid":{"rendered":"http:\/\/easy-admin.ca\/?p=711"},"modified":"2017-10-12T11:09:46","modified_gmt":"2017-10-12T15:09:46","slug":"best-command-line-tools-linux-performance-monitoring","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2016\/10\/08\/best-command-line-tools-linux-performance-monitoring\/","title":{"rendered":"Best command line tools for linux performance monitoring"},"content":{"rendered":"<p dir=\"ltr\">Sometimes a system can be slow and many reasons can be the root cause. To identify the process that is consuming memory, disk I\/O or processor capacity you need to use tools to see what is happening in an operation system.<\/p>\n<p dir=\"ltr\">There are many tools to <strong>monitor<\/strong> a <em><strong>GNU\/Linux server<\/strong><\/em>.\u00a0In this article, I am providing 6 <strong><em>monitoring tools<\/em><\/strong> and i hope it will help you.<\/p>\n<p dir=\"ltr\"><strong>First install EPEL RPM extras repo:<\/strong><\/p>\n<p dir=\"ltr\"># sudo yum install epel-release<\/p>\n<h2 dir=\"ltr\">Htop<\/h2>\n<p><strong>Htop<\/strong>\u00a0is an alternative of <em><strong>top command<\/strong><\/em> but it provides <em><strong>interactive system-monitor process-viewer<\/strong><\/em> and more user friendly output than top.<br \/>\n<strong>htop<\/strong> also provides a better way to navigate to any process using keyboard Up\/Down keys as well as we can also operate it using mouse.<\/p>\n<p><a href=\"https:\/\/easy-admin.ca\/my_uploads\/2016\/10\/Htop.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-712 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/Htop.png\" alt=\"htop\" width=\"997\" height=\"642\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/Htop.png 997w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/Htop-300x193.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/Htop-768x495.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p># yum -y install htop<\/p>\n<p>To start <strong>Htop<\/strong> simply type the following<\/p>\n<p># htop<\/p>\n<h2>dstat<\/h2>\n<p><strong>Dstat<\/strong>\u00a0is a versatile replacement for\u00a0<strong>vmstat<\/strong>,\u00a0<strong>iostat<\/strong>,\u00a0<strong>netstat<\/strong>\u00a0and\u00a0<strong>ifstat<\/strong>.\u00a0<strong>Dstat<\/strong>\u00a0overcomes some of their limitations and adds some extra features, more counters and flexibility.\u00a0<strong>Dstat<\/strong>\u00a0is handy for\u00a0<strong>monitoring systems<\/strong>\u00a0during performance tuning tests, benchmarks or troubleshooting.<br \/>\n<strong>Dstat<\/strong>\u00a0allows you to view all of your system resources in real-time, you can eg. compare disk utilization in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).<br \/>\n<strong>Dstat<\/strong>\u00a0gives you detailed selective information in columns and clearly indicates in what magnitude and unit the output is displayed. Less confusion, less mistakes. And most importantly, it makes it very easy to write plugins to collect your own counters and extend in ways you never expected.<br \/>\n<strong>Dstat\u2019s<\/strong>\u00a0output by default is designed for being interpreted by humans in real-time, however you can export details to<strong>\u00a0CSV output<\/strong>\u00a0to a file to be imported later into Gnumeric or Excel to generate graphs.<\/p>\n<p><a href=\"https:\/\/easy-admin.ca\/my_uploads\/2016\/10\/dstat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-713 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/dstat.png\" alt=\"dstat\" width=\"997\" height=\"626\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/dstat.png 997w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/dstat-300x188.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/dstat-768x482.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p># yum -y install dstat<\/p>\n<p>To start <strong>dstat<\/strong> simply type the following<\/p>\n<p># dstat<\/p>\n<h2>Saidar<\/h2>\n<p><strong>Saidar<\/strong>\u00a0is a curses-based application to display\u00a0<strong>system statistics<\/strong>. It use the libstatgrab library, which provides cross platform access to statistics about the system on which it\u2019s run. Reported statistics include <strong>CPU<\/strong>,\u00a0<strong>load<\/strong>,\u00a0<strong>processes<\/strong>,\u00a0<strong>memory<\/strong>,\u00a0<strong>swap<\/strong>,\u00a0<strong>network input<\/strong>\u00a0and\u00a0<strong>output<\/strong>\u00a0and\u00a0<strong>disks activities<\/strong>\u00a0along with their free space.<\/p>\n<p><a href=\"http:\/\/easy-admin.ca\/my_uploads\/2016\/10\/saidar.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-714 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/saidar.png\" alt=\"saidar\" width=\"997\" height=\"626\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/saidar.png 997w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/saidar-300x188.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/saidar-768x482.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p># yum -y install saidar<\/p>\n<p>To start <strong>saidar<\/strong> simply type the following<\/p>\n<p># saidar<\/p>\n<h2>Glances<\/h2>\n<p><strong>Glances<\/strong>\u00a0is a cross-platform curses-based command line\u00a0<strong>monitoring tool<\/strong>\u00a0writen in Python\u00a0which use the\u00a0<strong>psutil<\/strong>\u00a0library to grab informations from the system.\u00a0<strong>Glance\u00a0<\/strong>monitoring\u00a0<b>CPU<\/b>,\u00a0<b>Load Average<\/b>,\u00a0<b>Memory<\/b>,\u00a0<b>Network Interfaces<\/b>,\u00a0<b>Disk I\/O<\/b>,\u00a0<b>Processes<\/b>and\u00a0<b>File System<\/b>\u00a0spaces utilization.<\/p>\n<p><strong>Glances<\/strong>\u00a0can adapt dynamically the displayed information depending on the terminal siwrize. It can also work in a\u00a0<strong>client\/server mode<\/strong>\u00a0for\u00a0<strong>remote monitoring<\/strong>.<\/p>\n<p><a href=\"http:\/\/easy-admin.ca\/my_uploads\/2016\/10\/glances.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-715 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/glances.png\" alt=\"glances\" width=\"997\" height=\"626\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/glances.png 997w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/glances-300x188.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/glances-768x482.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p># yum -y install glances<\/p>\n<p>To start <strong>glances<\/strong> simply type the following<\/p>\n<p># glances<\/p>\n<h2>Atop<\/h2>\n<p><a title=\"atop tool\" href=\"http:\/\/www.atoptool.nl\/\" target=\"_blank\" rel=\"noopener\"><strong>Atop<\/strong><\/a>\u00a0is an\u00a0<strong>interactive monitor<\/strong>\u00a0to view the\u00a0<strong>load<\/strong>\u00a0on a\u00a0<strong>Linux system<\/strong>. It shows the occupation of the most critical hardware resources on system level, i.e. cpu, memory, disk and network. It also shows which processes are responsible for the indicated load with respect to cpu- and memory load on process level.<\/p>\n<p>Disk load is shown if per process \u201cstorage accounting\u201d is active in the kernel or if the kernel patch \u2018cnt\u2019 has been installed. Network load is only shown per process if the kernel patch \u2018cnt\u2019 has been installed.<\/p>\n<p><a href=\"http:\/\/easy-admin.ca\/my_uploads\/2016\/10\/atop.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-716 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/atop.png\" alt=\"atop\" width=\"997\" height=\"626\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/atop.png 997w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/atop-300x188.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/atop-768x482.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p># yum -y install atop<\/p>\n<p>To start <strong>Atop<\/strong> simply type the following<\/p>\n<p># atop<\/p>\n<h2>IPTraf<\/h2>\n<p>The iptraf command is interactive colorful IP LAN monitor. It is an ncurses-based IP LAN monitor that generates various network statistics including TCP info, UDP counts, ICMP and OSPF information, Ethernet load info, node stats, IP checksum errors, and others. It can provide the following info in easy to read format:<\/p>\n<ul>\n<li>Network traffic statistics by TCP connection<\/li>\n<li>IP traffic statistics by network interface<\/li>\n<li>Network traffic statistics by protocol<\/li>\n<li>Network traffic statistics by TCP\/UDP port and by packet size<\/li>\n<li>Network traffic statistics by Layer2 address<\/li>\n<\/ul>\n<p><a href=\"http:\/\/easy-admin.ca\/my_uploads\/2016\/10\/iptraf.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-717 size-full\" src=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/iptraf.png\" alt=\"iptraf\" width=\"997\" height=\"626\" srcset=\"https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/iptraf.png 997w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/iptraf-300x188.png 300w, https:\/\/easy-admin.ca\/wp-content\/uploads\/2016\/10\/iptraf-768x482.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p># yum -y install iptraf<\/p>\n<p>To start <strong>IPTraf<\/strong> simply type the following<\/p>\n<p># iptraf<\/p>\n<p>or<\/p>\n<p># iptraf-ng<\/p>\n<p><strong><em>Enjoy!<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes a system can be slow and many reasons can be the root cause. To identify the process that is consuming memory, disk I\/O or processor capacity you need to use tools to see what is happening in an operation system. There are many tools to monitor a GNU\/Linux server.\u00a0In this article, I am providing &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2016\/10\/08\/best-command-line-tools-linux-performance-monitoring\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Best command line tools for linux performance monitoring<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-711","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=711"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/711\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}