{"id":3446,"date":"2014-08-09T14:14:31","date_gmt":"2014-08-09T06:14:31","guid":{"rendered":"http:\/\/rmohan.com\/?p=3446"},"modified":"2014-08-09T14:14:31","modified_gmt":"2014-08-09T06:14:31","slug":"top-12-ps-performance-commands-2","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3446","title":{"rendered":"TOP 12 &#8216;PS&#8217; PERFORMANCE COMMANDS"},"content":{"rendered":"<p>TOP 12 &#8216;PS&#8217; PERFORMANCE COMMANDS<\/p>\n<p>admin@UM 02:03 AIX, Unix<br \/>\nI use following ps commands in order to check for performance probelms:<br \/>\n1) Displaying top CPU_consuming processes:<\/p>\n<p> # ps aux|head -1; ps aux|sort -rn +2|head -10<br \/>\n2) Displaying top 10 memory-consuming processes:<\/p>\n<p># ps aux|head -1; ps aux|sort -rn +3|head<br \/>\n3) Displaying process in order of being penalized:<\/p>\n<p># ps -eakl|head -1; ps -eakl|sort -rn +5<br \/>\n4) Displaying process in order of priority:<\/p>\n<p># ps -eakl|sort -n +6|head<br \/>\n5) Displaying process in order of nice value<\/p>\n<p># ps -eakl|sort -n +7<br \/>\n6) Displaying the process in order of time<\/p>\n<p># ps vx|head -1;ps vx|grep -v PID|sort -rn +3|head -10<br \/>\n7) Displaying the process in order of real memory use<\/p>\n<p># ps vx|head -1; ps vx|grep -v PID|sort -rn +6|head -10<br \/>\n8) Displaying the process in order of I\/O<\/p>\n<p># ps vx|head -1; ps vx|grep -v PID|sort -rn +4|head -10<br \/>\n9) Displaying WLM classes<\/p>\n<p># ps -a -o pid, user, class, pcpu, pmem, args<br \/>\n10) Determining process ID of wait processes:<\/p>\n<p># ps vg|head -1; ps vg|grep -w wait<br \/>\n11) Wait process bound to CPU<\/p>\n<p> # ps -mo THREAD -p<br \/>\n12) CPU usage with priority levels<\/p>\n<p> # topas -P<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TOP 12 &#8216;PS&#8217; PERFORMANCE COMMANDS<\/p>\n<p>admin@UM 02:03 AIX, Unix I use following ps commands in order to check for performance probelms: 1) Displaying top CPU_consuming processes:<\/p>\n<p> # ps aux|head -1; ps aux|sort -rn +2|head -10 2) Displaying top 10 memory-consuming processes:<\/p>\n<p># ps aux|head -1; ps aux|sort -rn +3|head 3) Displaying process in order [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3446"}],"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=3446"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3446\/revisions"}],"predecessor-version":[{"id":3447,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3446\/revisions\/3447"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}