{"id":10679,"date":"2023-11-28T21:41:23","date_gmt":"2023-11-28T13:41:23","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=10679"},"modified":"2023-12-07T14:42:46","modified_gmt":"2023-12-07T06:42:46","slug":"jvm-zhong-diao-you-gong-ju-zhi-dao-ma","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/11\/28\/jvm-zhong-diao-you-gong-ju-zhi-dao-ma\/","title":{"rendered":"JVM\u4e2d\u8c03\u4f18\u5de5\u5177\u77e5\u9053\u5417\uff1f"},"content":{"rendered":"<p>\u662f\u7684\uff0c\u6709\u4e00\u4e9b\u5e38\u7528\u7684 Java \u865a\u62df\u673a\u8c03\u4f18\u5de5\u5177\uff0c\u7528\u4e8e\u5206\u6790\u548c\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684 JVM \u8c03\u4f18\u5de5\u5177\uff1a<\/p>\n<ol>\n<li>\n<strong>VisualVM\uff1a<\/strong><\/p>\n<ul>\n<li>VisualVM \u662f\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\u7684\u76d1\u63a7\u3001\u7ba1\u7406\u548c\u8bca\u65ad\u5de5\u5177\uff0c\u6574\u5408\u4e86\u591a\u4e2a JDK \u81ea\u5e26\u7684\u5de5\u5177\uff0c\u5982 JConsole\u3001VisualGC\u3001Profiler \u7b49\u3002\u5b83\u652f\u6301\u672c\u5730\u548c\u8fdc\u7a0b Java \u8fdb\u7a0b\u7684\u76d1\u63a7\uff0c\u53ef\u4ee5\u67e5\u770b\u5185\u5b58\u3001\u7ebf\u7a0b\u3001\u5783\u573e\u56de\u6536\u7b49\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>JConsole\uff1a<\/strong><\/p>\n<ul>\n<li>JConsole \u662f JDK \u81ea\u5e26\u7684\u4e00\u4e2a\u76d1\u63a7\u548c\u7ba1\u7406\u5de5\u5177\uff0c\u63d0\u4f9b\u56fe\u5f62\u754c\u9762\u5c55\u793a Java \u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u65f6\u4fe1\u606f\uff0c\u5305\u62ec\u5806\u5185\u5b58\u4f7f\u7528\u3001\u7ebf\u7a0b\u72b6\u6001\u3001\u5783\u573e\u56de\u6536\u4fe1\u606f\u7b49\u3002\u53ef\u4ee5\u7528\u4e8e\u57fa\u672c\u7684\u6027\u80fd\u76d1\u63a7\u548c\u5206\u6790\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>JVisualVM Profiler\uff1a<\/strong><\/p>\n<ul>\n<li>JVisualVM \u4e5f\u96c6\u6210\u4e86 Profiler\uff0c\u53ef\u4ee5\u7528\u4e8e\u6267\u884c CPU\u3001\u5185\u5b58\u548c\u7ebf\u7a0b\u5206\u6790\u3002\u901a\u8fc7 Profiler \u53ef\u4ee5\u6536\u96c6\u65b9\u6cd5\u8c03\u7528\u6811\u3001\u70ed\u70b9\u5206\u6790\u7b49\u4fe1\u606f\uff0c\u5e2e\u52a9\u5b9a\u4f4d\u6027\u80fd\u74f6\u9888\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>Java Mission Control (JMC)\uff1a<\/strong><\/p>\n<ul>\n<li>Java Mission Control \u662f JDK \u81ea\u5e26\u7684\u4e00\u5957\u9ad8\u7ea7\u76d1\u63a7\u548c\u7ba1\u7406\u5de5\u5177\uff0c\u5305\u62ec JConsole\u3001VisualVM \u548c\u4e00\u4e9b\u4e13\u4e1a\u7684\u6027\u80fd\u5206\u6790\u5de5\u5177\u3002\u5b83\u63d0\u4f9b\u4e86\u4f4e\u5f00\u9500\u7684\u6027\u80fd\u6536\u96c6\u548c\u5206\u6790\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>YourKit Java Profiler\uff1a<\/strong><\/p>\n<ul>\n<li>YourKit \u662f\u4e00\u6b3e\u5546\u4e1a\u6027\u80fd\u5206\u6790\u5de5\u5177\uff0c\u652f\u6301\u5bf9 Java \u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u9ad8\u7ea7\u7684\u6027\u80fd\u5206\u6790\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6027\u80fd\u7edf\u8ba1\u4fe1\u606f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5b9a\u4f4d\u6027\u80fd\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>JProfiler\uff1a<\/strong><\/p>\n<ul>\n<li>JProfiler \u662f\u53e6\u4e00\u6b3e\u5546\u4e1a\u6027\u80fd\u5206\u6790\u5de5\u5177\uff0c\u5177\u6709\u5f3a\u5927\u7684\u6027\u80fd\u5206\u6790\u548c\u8c03\u4f18\u529f\u80fd\u3002\u5b83\u652f\u6301 CPU \u5206\u6790\u3001\u5185\u5b58\u5206\u6790\u3001\u7ebf\u7a0b\u5206\u6790\u7b49\uff0c\u53ef\u4ee5\u7528\u4e8e\u6df1\u5165\u4e86\u89e3\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u74f6\u9888\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>VisualGC\uff1a<\/strong><\/p>\n<ul>\n<li>VisualGC \u662f JDK \u81ea\u5e26\u7684\u4e00\u4e2a\u56fe\u5f62\u5316\u7684\u5783\u573e\u56de\u6536\u76d1\u63a7\u5de5\u5177\uff0c\u7528\u4e8e\u89c2\u5bdf\u548c\u5206\u6790 Java \u5806\u548c\u5783\u573e\u56de\u6536\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u4e2d\u8fdb\u884c Java \u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u5206\u6790\u548c\u8c03\u4f18\u3002\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u3001\u73af\u5883\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u7279\u70b9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u662f\u7684\uff0c\u6709\u4e00\u4e9b\u5e38\u7528\u7684 Java \u865a\u62df\u673a\u8c03\u4f18\u5de5\u5177\uff0c\u7528\u4e8e\u5206\u6790\u548c\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684 JVM \u8c03\u4f18\u5de5\u5177 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[],"class_list":["post-10679","post","type-post","status-publish","format-standard","hentry","category-jvm"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/10679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=10679"}],"version-history":[{"count":2,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/10679\/revisions"}],"predecessor-version":[{"id":16879,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/10679\/revisions\/16879"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=10679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=10679"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=10679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}