{"id":2450,"date":"2022-08-30T15:24:58","date_gmt":"2022-08-30T15:24:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/12\/tsung-cpu-usage-value-from-munin-too-high-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:58","modified_gmt":"2022-08-30T15:24:58","slug":"tsung-cpu-usage-value-from-munin-too-high-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/tsung-cpu-usage-value-from-munin-too-high-collection-of-common-programming-errors\/","title":{"rendered":"Tsung: CPU usage value from munin too high-Collection of common programming errors"},"content":{"rendered":"<p>I am struggling to get munin reporting working when running a Tsung load test. My set up is as follows.<\/p>\n<p><strong>Web site staging server (staging4):<\/strong><\/p>\n<p><strong>Tsung server<\/strong><\/p>\n<p>My Tsung server has an SSH tunnel to staging4 on port 4950 see my tsung.xml configuration below:<\/p>\n<pre><code>    \n      \n        \n      \n   \n<\/code><\/pre>\n<p>When I start my load test I get the following error message every 10 seconds:<\/p>\n<pre><code>   =INFO REPORT==== 16-Nov-2011::16:04:09 ===\n        ts_os_mon_munin:(4:) CPU usage value from munin too high, skip (host \"ip-10-48-177-212.housetrip.com\" , cpu  8761644.1)\n<\/code><\/pre>\n<p>I maybe wrong but I think this is because our staging 4 server has 2 CPUs and so the resulting CPU % is greater than 100%. I checked through the Tsung code and their didn&#8217;t seem to be an option to set the number of CPUs referenced in the monitoring XML element https:\/\/github.com\/processone\/tsung\/blob\/master\/src\/tsung_controller\/ts_config.erl<\/p>\n<p>However there does seem to be a CPU setting on the munin plugin wrapper https:\/\/github.com\/processone\/tsung\/blob\/master\/src\/tsung_controller\/ts_os_mon_munin.erl<\/p>\n<p>Has anyone come across this before? Is there anyway I can get the munin values to be returned in my log file?<\/p>\n<p>Any suggestions would be greatly appreciated.<\/p>\n<p>Many thanks<\/p>\n<ol>\n<li>\n<p>I haven&#8217;t worked with munin, but I know that Tsung doesn&#8217;t handle multicore CPUs very well.<\/p>\n<p>To avoid Tsung crashes when running massive Tsung load from a client I used this workaround on a 4 core CPU.<\/p>\n<pre><code>\n    \n    \n    \n    \n\n<\/code><\/pre>\n<p>As you can see, the trick is to set up one client Tsung erlang node per available core. Maybe this trick can solve your munin problem also.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-12 20:50:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am struggling to get munin reporting working when running a Tsung load test. My set up is as follows. Web site staging server (staging4): Tsung server My Tsung server has an SSH tunnel to staging4 on port 4950 see my tsung.xml configuration below: When I start my load test I get the following error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2450","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2450"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2450\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}