{"id":566,"date":"2012-07-10T11:12:43","date_gmt":"2012-07-10T03:12:43","guid":{"rendered":"http:\/\/rmohan.com\/?p=566"},"modified":"2012-07-10T11:12:43","modified_gmt":"2012-07-10T03:12:43","slug":"linux-commands-to-monitor-memory-usage","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=566","title":{"rendered":"Linux Commands to Monitor Memory Usage"},"content":{"rendered":"<p><strong>Linux Commands to Monitor Memory Usage<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>vmstat Monitor virtual memory<br \/>\nfree Display amount of free and used memory in the system.<br \/>\npmap Display\/examine memory map and libraries (so). Usage: pmap pid<br \/>\ntop Show top processes<br \/>\nsar -B Show statistics on page swapping.<br \/>\ntime -v date Show system page size, page faults, etc of a process during execution. Note you must fully qualify the command as &#8220;\/usr\/bin\/time&#8221; to avoid using the bash shell command &#8220;time&#8221;.<br \/>\ncat \/proc\/sys\/vm\/freepages Display virtual memory &#8220;free pages&#8221;.<br \/>\nOne may increase\/decrease this limit: echo 300 400 500 &gt; \/proc\/sys\/vm\/freepages<br \/>\ncat \/proc\/meminfo Show memory size and usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux Commands to Monitor Memory Usage<\/p>\n<p>&nbsp;<\/p>\n<p>vmstat Monitor virtual memory free Display amount of free and used memory in the system. pmap Display\/examine memory map and libraries (so). Usage: pmap pid top Show top processes sar -B Show statistics on page swapping. time -v date Show system page size, page faults, etc of a [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/566"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=566"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/566\/revisions"}],"predecessor-version":[{"id":567,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/566\/revisions\/567"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}