{"id":884,"date":"2017-12-14T12:45:41","date_gmt":"2017-12-14T12:45:41","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=884"},"modified":"2017-12-14T12:47:05","modified_gmt":"2017-12-14T12:47:05","slug":"jvm-performance","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/jvm-performance\/","title":{"rendered":"JVM Performance"},"content":{"rendered":"<p class=\"description_pui\">There is an utility from Sun (now Oracle :-D) that may help you (check that is installed in your system, command jps:<\/p>\n<p><a href=\"http:\/\/java.sun.com\/performance\/jvmstat\/\" target=\"_blank\" rel=\"noopener\">http:\/\/java.sun.com\/performance\/jvmstat\/\u00a0<\/a><\/p>\n<p>Usage:<\/p>\n<p><a href=\"http:\/\/java.sun.com\/performance\/jvmstat\/solaris.html\" target=\"_blank\" rel=\"noopener\">http:\/\/java.sun.com\/performance\/jvmstat\/solaris.html\u00a0<\/a><\/p>\n<p>If you make it work&#8230;:), adding it to the pandora agent is simple, just create a module that parses the output using your own shell skills (wc, cut, perl, sed, awk, tail&#8230;)<\/p>\n<h2>Module data<\/h2>\n<p>As an example:\u00a0<\/p>\n<pre>\r\nmodule_begin\u00a0\r\nmodule_name jvmperf\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec jstat -gcutil $(jps |grep -v Jps|tail -1|awk '{print $1}') 1000 1\u00a0\r\nmodule_description JVM Performance\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There is an utility from Sun (now Oracle :-D) that may help you (check that is installed in your system, command jps: http:\/\/java.sun.com\/performance\/jvmstat\/\u00a0 Usage: http:\/\/java.sun.com\/performance\/jvmstat\/solaris.html\u00a0 If you make it work&#8230;:), adding it to the pandora agent is simple, just create a module that parses the output using your own shell skills (wc, cut, perl, sed, [&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":[5],"tags":[209],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/884"}],"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=884"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/884\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}