{"id":588,"date":"2018-05-03T04:07:59","date_gmt":"2018-05-03T04:07:59","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=588"},"modified":"2018-05-03T05:10:24","modified_gmt":"2018-05-03T05:10:24","slug":"linux-performance-monitoring","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=588","title":{"rendered":"Linux Performance Monitoring"},"content":{"rendered":"<p>Listed below are few handy tools to monitor Linux system performance:<\/p>\n<p><strong>System Monitoring<\/strong>: This is a graphical tool available in GUI mode, similar to Taskbar iin Windows,where we are have a real time monitoring of CPU usage, memory usage, history, etc.<\/p>\n<p><strong>top<\/strong> : A linux process monitoring command, that refreshes in 5 seconds, that displays CPI, memory usage, swap memory, Process IDs, users, etc<\/p>\n<p><strong>vmstat<\/strong> or <strong>sysstat<\/strong>: Displays statistics of the virtual memory, the kernel threads, disks, CPU activity, interrupts, etc<\/p>\n<p><strong>lsof<\/strong> : List of Open Files. This command shows all files that are in open state. This is a command used to check is a specific file is opened, or a backup does not happen since a file is in open state, etc. You may use lsof command with grep to narrow the output.<\/p>\n<p><strong>netstat<\/strong> : A command to get Network statistics to see the listening or established network ports, who is accessing the connection, etc.<\/p>\n<p><strong>iotop<\/strong> : Monitor and display real-time disk IO.<\/p>\n<p><strong>iostat<\/strong> : Is a tool to collect the storage device IO statistics, including reads, writes, etc. This is installed by yum package sysstat<\/p>\n<p><strong>tcpdump<\/strong> : A tool to sniff the network interface. Network packet analyser. The command &#8220;tcpdump -i eth0&#8221; shows<\/p>\n<p><strong>uptime<\/strong> : Find the uptime of a system<\/p>\n<p><strong>ps<\/strong> : Find the processes running on a host. The command &#8220;<strong>ps -eaf<\/strong>&#8221; is a very useful switch.<\/p>\n<p><strong>free<\/strong> : Command to find the memory utilization in a host.\u00a0The command &#8220;<strong>free -m<\/strong>&#8221; is a very useful switch to see output in MB.<\/p>\n<p><strong>mpstat<\/strong> : Command to see the activities for available processors in a host.\u00a0The command &#8220;<strong>mpstat -P ALL<\/strong>&#8221; is a very useful switch.<\/p>\n<p><strong>tracepath<\/strong> : Trace the path taken by host to reach a destination<\/p>\n<p><strong>ping<\/strong> : Check the availability of a remote host<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Listed below are few handy tools to monitor Linux system performance: System Monitoring: This is a graphical tool available in GUI mode, similar to Taskbar <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=588\" title=\"Linux Performance Monitoring\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":252,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=588"}],"version-history":[{"count":4,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":592,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/592"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}