{"id":980,"date":"2017-12-14T15:41:22","date_gmt":"2017-12-14T15:41:22","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=980"},"modified":"2017-12-14T15:41:40","modified_gmt":"2017-12-14T15:41:40","slug":"memory-sum-of-several-process-instances","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/memory-sum-of-several-process-instances\/","title":{"rendered":"Memory SUM of several process instances"},"content":{"rendered":"<p class=\"description_pui\">This modules sums the RSS (real) memory used for several processes with the same name (instances), p.e: This is used to sum all memory used by PHP exectutions in a server<\/p>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name php5_memory_sum\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec ps aux | grep php5 | grep -v grep | awk '{ SUM+=$6 } END { print SUM }'\u00a0\r\nmodule_description This module sums all RSS (resident, per process) memory used for each process 'php5' and SUMS all together in one single value.\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This modules sums the RSS (real) memory used for several processes with the same name (instances), p.e: This is used to sum all memory used by PHP exectutions in a server Module data module_begin\u00a0 module_name php5_memory_sum\u00a0 module_type generic_data\u00a0 module_exec ps aux | grep php5 | grep -v grep | awk &#8216;{ SUM+=$6 } END { [&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":[239],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/980"}],"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=980"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}