{"id":3628,"date":"2018-12-25T16:37:41","date_gmt":"2018-12-25T08:37:41","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3628"},"modified":"2018-12-25T16:37:41","modified_gmt":"2018-12-25T08:37:41","slug":"jvm-%e7%9b%91%e6%8e%a7%e4%b9%8b-jconsole-%e5%b7%a5%e5%85%b7%e7%9a%84%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3628","title":{"rendered":"JVM \u76d1\u63a7\u4e4b jconsole \u5de5\u5177\u7684\u4f7f\u7528\u6559\u7a0b"},"content":{"rendered":"<p>\n\tjconsole \u662f\u57fa\u4e8e jmx \u4e4b\u4e0a\u7684\u4e00\u4e2a jvm \u7684\u76d1\u63a7\u5de5\u5177\u3002\u4e00\u4e2a java GUI \u76d1\u89c6\u5de5\u5177\uff0c\u53ef\u4ee5\u4ee5\u56fe\u8868\u5316\u7684\u5f62\u5f0f\u663e\u793a\u5404\u79cd\u6570\u636e\u3002\u5e76\u53ef\u901a\u8fc7\u8fdc\u7a0b\u8fde\u63a5\u76d1\u89c6\u8fdc\u7a0b\u7684\u670d\u52a1\u5668 VM\u3002\u7528 java \u5199\u7684 GUI \u7a0b\u5e8f\uff0c\u7528\u6765\u76d1\u63a7 VM\uff0c\u5e76\u53ef\u76d1\u63a7\u8fdc\u7a0b\u7684 VM\uff0c\u975e\u5e38\u6613\u7528\uff0c\u800c\u4e14\u529f\u80fd\u975e\u5e38\u5f3a\u3002\u5728 Mac \u4e0b\u547d\u4ee4\u884c\u91cc\u6253 jconsole\uff0c\u9009\u5219\u8fdb\u7a0b\u5c31\u53ef\u4ee5\u4f7f\u7528\u5b83\u4e86\u3002\n<\/p>\n<p>\n\tjconsole \u4e3b\u8981\u76d1\u63a7 JVM \u7684\u6982\u89c8\u3001\u5185\u5b58\u3001\u7ebf\u7a0b\u3001\u7c7b\u3001vm\u6982\u8981\u3001MBean\u7b49\u5185\u5bb9\u3002\n<\/p>\n<p>\n\t\u5982\u679c\u662f\u672c\u5730\u73af\u5883\uff0c\u6211\u4eec\u76f4\u63a5\u8f93\u5165 jconsole \u5373\u53ef\u6253\u5f00 jconsole GUI \u7a0b\u5e8f\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"jconsole \u8fde\u63a5\u767b\u9646\u9875\u9762\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/jsonsole-connect-login.png\" style=\"width: 484px;height: 453px\" \/>\n<\/p>\n<p>\n\t\u4e0a\u56fe\u5c31\u662f jconsole \u7684\u4e00\u4e2a\u8fde\u63a5\u767b\u5f55\u9875\u9762\u3002\n<\/p>\n<p>\n\t\u5728 Mac \u4e0b\uff0c\u6bcf\u6b21\u8fde\u63a5\u90fd\u4f1a\u63d0\u793a\u5f53\u524d\u8fde\u63a5\u975e ssl \u5b89\u5168\u8fde\u63a5\uff0c\u8be2\u95ee\u4f60\u662f\u5426\u4f7f\u7528 SSL \u5b89\u5168\u8fde\u63a5\uff0c\u56e0\u4e3a\u6211\u4eec\u8fd9\u91cc\u6ca1\u6709\u505a\u914d\u7f6e\uff0c\u8bf4\u4e0d\u80fd\u91c7\u7528\u5b89\u5168\u8fde\u63a5\u3002\u76f4\u63a5\u9009\u62e9\u4e0d\u5b89\u5168\u7684\u8fde\u63a5\u5373\u53ef\u3002\n<\/p>\n<p>\n\t\u5982\u679c\u662f\u8fdc\u7a0b\u8fde\u63a5\uff0c\u6216\u8005\u5b89\u5168\u8fde\u63a5\uff0c\u53ef\u4ee5\u5728\u542f\u52a8\u53c2\u6570\u4e2d\u505a\u4e00\u4e0b\u914d\u7f6e\uff1a\n<\/p>\n<pre class=\"brush:plain;\">\r\n-Djava.rmi.server.hostname=192.168.56.253&nbsp;\r\n-Dcom.sun.management.jmxremote.port=9999\r\n-Dcom.sun.management.jmxremote.authenticate=true\r\n-Dcom.sun.management.jmxremote.ssl=false\r\n-Dcom.sun.management.jmxremote.acccess.file=\/usr\/local\/tomcat\/bin\/jconsole\/jmxremote.access\r\n-Dcom.sun.management.jmxremote.password.file=\/usr\/local\/tomcat\/bin\/jconsole\/jmxremote.password<\/pre>\n<p>\n\t\u8fde\u63a5\u4e0a\u4e86\u4e4b\u540e\uff0c\u770b\u5230\u7684\u754c\u9762\u5185\u5bb9\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"JConsole \u4e3b\u754c\u9762\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/jsonsole-vm-pic.png\" style=\"width: 896px;height: 748px\" \/>\n<\/p>\n<p>\n\t\u5176\u4e2d VM \u9009\u9879\u5361\u4e2d\u663e\u793a\u7684\u5185\u5bb9\u975e\u5e38\u7684\u591a\u3002\u5728\u6b64\u9009\u9879\u5361\u4e2d\u63d0\u4f9b\u7684\u4fe1\u606f\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\u3002\n<\/p>\n<ul>\n<li>\n\t\t<strong>\u6458\u8981<\/strong><\/p>\n<ul>\n<li>\n\t\t\t\t<em>\u8fd0\u884c\u65f6\u95f4<\/em>&nbsp;\uff1a\u5f00\u59cb\u4ee5\u6765\uff0cJava\u865a\u62df\u673a\u7684\u65f6\u95f4\u603b\u989d\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u8fdb\u7a0b\u7684CPU\u65f6\u95f4<\/em>&nbsp;\uff1aJava VM\u7684\u5f00\u59cb\uff0c\u56e0\u4e3a\u5b83\u6d88\u8017\u7684CPU\u65f6\u95f4\u603b\u91cf\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u7f16\u8bd1\u603b\u65f6\u95f4<\/em>&nbsp;\uff1a\u7d2f\u8ba1\u65f6\u95f4\u82b1\u8d39\u5728JIT\u7f16\u8bd1\u3002\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t<strong>\u4e3b\u9898<\/strong><\/p>\n<ul>\n<li>\n\t\t\t\t\u6d3b\u52a8\u7ebf\u7a0b \uff1a\u76ee\u524d\u73b0\u573a\u5b88\u62a4\u7ebf\u7a0b\uff0c\u52a0\u4e0a\u975e\u5b88\u62a4\u7ebf\u7a0b\u6570\u91cf\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5cf0\u503c<\/em>&nbsp;\uff1a\u6d3b\u52a8\u7ebf\u7a0b\u7684\u6700\u9ad8\u6570\u76ee\uff0c\u56e0\u4e3aJava\u865a\u62df\u673a\u5f00\u59cb\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5b88\u62a4\u7ebf\u7a0b<\/em>&nbsp;\uff1a\u5f53\u524d\u7684\u6d3b\u52a8\u5b88\u62a4\u7ebf\u7a0b\u6570\u91cf\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u603b\u7ebf\u7a0b<\/em>&nbsp;\uff1a\u5f00\u59cb\u81eaJava\u865a\u62df\u673a\u542f\u52a8\u7684\u7ebf\u7a0b\u603b\u6570\uff0c\u5305\u62ec\u975e\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5b88\u62a4\u8fdb\u7a0b\u548c\u7ec8\u6b62\u7684\u7ebf\u7a0b\u3002\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t<strong>\u7c7b<\/strong><\/p>\n<ul>\n<li>\n\t\t\t\t<em>\u5f53\u524d\u7c7b\u88c5\u8f7d<\/em>&nbsp;\uff1a\u76ee\u524d\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u7684\u7c7b\u6570\u76ee\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u603b\u7c7b\u52a0\u8f7d<\/em>&nbsp;\uff1a\u4eceJava VM\u5f00\u59cb\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u7684\u7c7b\u603b\u548c\uff0c\u5305\u62ec\u90a3\u4e9b\u540e\u6765\u88ab\u5378\u8f7d\u7684\u7c7b\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5df2\u5378\u8f7d\u7c7b\u603b\u6570<\/em>&nbsp;\uff1a\u4eceJava\u865a\u62df\u673a\u5f00\u59cb\u4ece\u5185\u5b58\u4e2d\u5378\u8f7d\u7684\u7c7b\u7684\u6570\u76ee\u3002\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t<strong>\u5185\u5b58<\/strong><\/p>\n<ul>\n<li>\n\t\t\t\t<em>\u5f53\u524d\u7684\u5806\u5927\u5c0f<\/em>&nbsp;\uff1a\u76ee\u524d\u6240\u5360\u7528\u7684\u5806\u7684\u5343\u5b57\u8282\u6570\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5206\u914d\u7684\u5185\u5b58<\/em>&nbsp;\uff1a\u5806\u5206\u914d\u7684\u5185\u5b58\u603b\u91cf\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u6700\u5927\u5806\u6700\u5927\u503c<\/em>&nbsp;\uff1a\u5806\u6240\u5360\u7528\u7684\u5343\u5b57\u8282\u7684\u6700\u5927\u6570\u76ee\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u5f85\u6700\u540e\u786e\u5b9a\u7684\u5bf9\u8c61\uff1a\u5f85\u6700\u540e\u786e\u5b9a\u7684\u5bf9\u8c61\u7684\u6570\u91cf\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u82b1\u5728\u6267\u884cGC\u7684<em>\u5783\u573e\u6536\u96c6\u5668<\/em>&nbsp;\uff1a\u5305\u62ec\u5783\u573e\u6536\u96c6\uff0c\u5783\u573e\u6536\u96c6\u5668\u7684\u540d\u79f0\uff0c\u8fdb\u884c\u85cf\u54c1\u7684\u6570\u91cf\u548c\u603b\u65f6\u95f4\u7684\u4fe1\u606f\u3002\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t<strong>\u64cd\u4f5c\u7cfb\u7edf<\/strong><\/p>\n<ul>\n<li>\n\t\t\t\t<em>\u603b\u7269\u7406\u5185\u5b58<\/em>\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u7a7a\u95f2\u7269\u7406\u5185\u5b58<\/em>\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5206\u914d\u7684\u865a\u62df\u5185\u5b58<\/em>\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t<strong>\u5176\u4ed6\u4fe1\u606f<\/strong><\/p>\n<ul>\n<li>\n\t\t\t\t<em>VM\u53c2\u6570<\/em>&nbsp;\uff1a\u8f93\u5165\u53c2\u6570\u7684\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7Java\u865a\u62df\u673a\uff0c\u4e0d\u5305\u62ec\u7684\u4e3b\u8981\u65b9\u6cd5\u7684\u53c2\u6570\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u7c7b\u8def\u5f84<\/em>\u662f\u7531\u7cfb\u7edf\u7c7b\u52a0\u8f7d\u5668\u7528\u4e8e\u641c\u7d22\u7c7b\u6587\u4ef6\u7684\u7c7b\u8def\u5f84\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5e93\u8def\u5f84<\/em>&nbsp;\uff1a\u52a0\u8f7d\u5e93\u65f6\u8981\u641c\u7d22\u7684\u8def\u5f84\u5217\u8868\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<em>\u5f15\u5bfc\u7c7b\u8def\u5f84<\/em>&nbsp;\uff1a\u5f15\u5bfc\u7c7b\u8def\u5f84\u662f\u7531\u5f15\u5bfc\u7c7b\u52a0\u8f7d\u5668\u7528\u4e8e\u641c\u7d22\u7c7b\u6587\u4ef6\u3002\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\n\t\u770b\u4f3c jconsole \u7684\u64cd\u4f5c\u529f\u80fd\u6bd4\u8f83\u5c11\uff0c\u4f46\u5b9e\u9645\u4e0a\u5305\u542b\u975e\u5e38\u591a\u7684\u5185\u5bb9\u3002\n<\/p>\n<p>\n\tJConsole \u4f1a\u6d88\u8017\u5927\u91cf\u7cfb\u7edf\u8d44\u6e90\uff0c\u56e0\u6b64 Oracle \u5efa\u8bae\u4ec5\u5728\u7528\u4e8e\u521b\u5efa\u539f\u578b\u7684\u5f00\u53d1\u73af\u5883\u4e2d\u4f7f\u7528\u5b83\u3002\u8fd8\u5efa\u8bae\u4f7f\u7528\u8fdc\u7a0b\u76d1\u63a7\u5c06 JConsole \u5e94\u7528\u7a0b\u5e8f\u4e0e\u6240\u76d1\u63a7\u7684\u5e73\u53f0\u9694\u79bb\u3002\u56e0\u6b64\u7ebf\u4e0a\u4f7f\u7528\u7684\u4eba\u975e\u5e38\u7684\u5c11\uff0c\u7f51\u4e0a\u7684\u76f8\u5173\u6559\u7a0b\u4e5f\u4e0d\u662f\u5f88\u591a\u3002\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"http:\/\/www.open-open.com\/lib\/view\/open1345646982251.html\" name=\"JConsole\u7684\u4f7f\u7528\u624b\u518c\" target=\"_blank\" title=\"JConsole\u7684\u4f7f\u7528\u624b\u518c\">JConsole\u7684\u4f7f\u7528\u624b\u518c<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/zh\/SSYKE2_8.0.0\/com.ibm.java.vm.80.doc\/docs\/jconsole.html\" name=\"\u4f7f\u7528 JConsole\" target=\"_blank\" title=\"\u4f7f\u7528 JConsole\">\u4f7f\u7528 JConsole<\/a>\n\t<\/li>\n<li>\n\t\t<a href=\"https:\/\/docs.oracle.com\/javase\/8\/docs\/technotes\/tools\/unix\/jconsole.html\" name=\"jconsole\" target=\"_blank\" title=\"jconsole\">jconsole<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3628\">JVM \u76d1\u63a7\u4e4b jconsole \u5de5\u5177\u7684\u4f7f\u7528\u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>jconsole \u662f\u57fa\u4e8e jmx \u4e4b\u4e0a\u7684\u4e00\u4e2a jvm \u7684\u76d1\u63a7\u5de5\u5177\u3002\u4e00\u4e2a java GUI \u76d1\u89c6\u5de5\u5177\uff0c\u53ef\u4ee5\u4ee5\u56fe\u8868 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1849,1845,1848,1844,1706],"class_list":["post-3628","post","type-post","status-publish","format-standard","hentry","category-java","tag-javah","tag-jconsole","tag-jhat","tag-jps","tag-jstat"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3628"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3628\/revisions"}],"predecessor-version":[{"id":3629,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3628\/revisions\/3629"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}