{"id":108,"date":"2006-10-13T12:16:28","date_gmt":"2006-10-13T12:16:28","guid":{"rendered":"http:\/\/blog.bananasplit.info\/?p=108"},"modified":"2006-10-13T12:16:28","modified_gmt":"2006-10-13T12:16:28","slug":"debian-performance-monitoring","status":"publish","type":"post","link":"https:\/\/blog.stmellion.org\/?p=108","title":{"rendered":"Debian Performance Monitoring"},"content":{"rendered":"<p>The title really should read system or resource monitoring, but performance monitoring seems to be the industry buzzword for checking up on what&#8217;s using what resource.<\/p>\n<p>First on the list has to be <b>top<\/b>.  This is a great tool for monitoring CPU and Memory utilization by process.  As its name suggests, the highest resource users are listed at the top.<br \/>\nThe sort field can be changed using the <b>&lt;<\/b> and <b>&gt;<\/b> to move it left and right.  Display of idle processes can be toggled with <b>i<\/b>.  As well as monitoring, processes can be killed using <b>k<\/b>.<\/p>\n<p>Next up is <b>iostat<\/b>.  This is part of the <a href=\"http:\/\/www.debian.org\">Debian<\/a> <a href=\"http:\/\/packages.debian.org\/stable\/admin\/sysstat\">Sysstat<\/a> package.  It provides details on CPU and Disk utilization, although <b>top<\/b> does CPU in a more granular manner.  The good bit about <b>iostat<\/b> is the disk utilization broken down by physical device and partition.  To get details use <b>iostat -x<\/b>.  It&#8217;s interesting to note that two disks in a raid set can have significantly different loadings.<\/p>\n<p>A good simple one is <b>vmstat<\/b> which provides an instant view of how much memory is being swapped out.  Too much of this and it&#8217;s time to start thinking about adding memory to the system.<\/p>\n<p>Last on my (far from complete) list is <b>lsof<\/b>.  This provides a huge list of all open files on the system.  Better use this one with <b>grep<\/b> to avoid everything useful scrolling off the screen.  Very useful when you&#8217;re trying to workout what process is keeping a file open.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The title really should read system or resource monitoring, but performance monitoring seems to be the industry buzzword for checking up on what&#8217;s using what resource. First on the list has to be top. This is a great tool for monitoring CPU and Memory utilization by process. As its name suggests, the highest resource users&hellip; <a class=\"more-link\" href=\"https:\/\/blog.stmellion.org\/?p=108\">Continue reading <span class=\"screen-reader-text\">Debian Performance Monitoring<\/span><\/a><\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":0,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}