{"id":217,"date":"2012-05-03T06:57:10","date_gmt":"2012-05-03T05:57:10","guid":{"rendered":"http:\/\/hirt.se\/blog\/?p=217"},"modified":"2012-05-03T07:54:14","modified_gmt":"2012-05-03T06:54:14","slug":"why-jcmd","status":"publish","type":"post","link":"https:\/\/hirt.se\/blog\/?p=217","title":{"rendered":"Why JCMD?"},"content":{"rendered":"<p>One of the reactions to my <a href=\"https:\/\/hirt.se\/blog\/?p=211\">recent blog on JCMD<\/a> has been \u201cBut, why?\u201d. It is a reasonable question \u2013 after all, the simple examples I added to the blog can be solved using existing tools (jps, jstack etc) in the bin folder of any recent JDK. The answer is that JCMD provides:<\/p>\n<ul>\n<li>A simple framework for easily adding more (self documenting) commands to the JVM.<\/li>\n<li>One launcher to learn how to use.<\/li>\n<li>The launcher is backwards and forward compatible. In other words, you can use an old version of the command to connect to a more recent version of the JVM, and vice versa.<\/li>\n<li>There are already diagnostic commands available that are not covered by the old j* tools, such as the ability to control the JMX agent and the Flight Recorder. In the future more commands will be added.<\/li>\n<li>In a future JDK update, a JMX interface will allow programmatic access to the diagnostic commands.<\/li>\n<\/ul>\n<p>For a hint at what will be available in the future, check the JRCMD chapter in the <a href=\"http:\/\/www.amazon.com\/Oracle-JRockit-The-Definitive-Guide\/dp\/1847198066\">JVM book<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the reactions to my recent blog on JCMD has been \u201cBut, why?\u201d. It is a reasonable question \u2013 after all, the simple examples I added to the blog can be solved using existing tools (jps, jstack etc) in the bin folder of any recent JDK. The answer is that JCMD provides: A simple [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-java-mission-control-fair-dj"],"_links":{"self":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217"}],"version-history":[{"count":1,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/217\/revisions\/218"}],"wp:attachment":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}