{"id":1197,"date":"2017-12-15T08:49:13","date_gmt":"2017-12-15T08:49:13","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1197"},"modified":"2017-12-15T09:28:19","modified_gmt":"2017-12-15T09:28:19","slug":"processes-high-cpu-on-linux-pid-name","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/processes-high-cpu-on-linux-pid-name\/","title":{"rendered":"Processes high CPU on Linux (%, PID, name)"},"content":{"rendered":"<p class=\"description_pui\">It returns the consume percentage, pid and name of the process that is consume more than the 90% of the CPU<\/p>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name Processes high CPU (%, PID, name)\u00a0\r\nmodule_type generic_data_string\u00a0\r\nmodule_exec core=$(nproc) &amp;&amp; ps -eo pcpu,pid,comm |sort -n | grep -v CPU | tail -1 | awk -v \"var=$core\" '{if ($1\/var&gt;90) print $1\/var \"%\" \" \" $2 \" \" $3; else print \"NA\"}' | tr -d \"n\"\u00a0\r\nmodule_description PID Processes &gt; 90% CPU\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It returns the consume percentage, pid and name of the process that is consume more than the 90% of the CPU Module data module_begin\u00a0 module_name Processes high CPU (%, PID, name)\u00a0 module_type generic_data_string\u00a0 module_exec core=$(nproc) &amp;&amp; ps -eo pcpu,pid,comm |sort -n | grep -v CPU | tail -1 | awk -v &#8220;var=$core&#8221; &#8216;{if ($1\/var&gt;90) print [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[25,6],"tags":[73,276,278],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1197"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=1197"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1197\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}