{"id":578,"date":"2025-07-20T21:47:04","date_gmt":"2025-07-20T13:47:04","guid":{"rendered":"http:\/\/101.43.65.133:8899\/?p=578"},"modified":"2025-10-09T15:07:18","modified_gmt":"2025-10-09T07:07:18","slug":"arthas-alibaba-java%e5%bc%80%e6%ba%90%e7%ba%bf%e4%b8%8a%e7%9b%91%e6%8e%a7%e8%af%8a%e6%96%ad%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"http:\/\/101.43.65.133:8899\/?p=578","title":{"rendered":"Arthas | Alibaba JAVA\u5f00\u6e90\u7ebf\u4e0a\u76d1\u63a7\u8bca\u65ad\u5de5\u5177"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"236\" src=\"http:\/\/101.43.65.133:8899\/wp-content\/uploads\/2025\/07\/image-1024x236.png\" alt=\"\" class=\"wp-image-618\" srcset=\"http:\/\/101.43.65.133:8899\/wp-content\/uploads\/2025\/07\/image-1024x236.png 1024w, http:\/\/101.43.65.133:8899\/wp-content\/uploads\/2025\/07\/image-300x69.png 300w, http:\/\/101.43.65.133:8899\/wp-content\/uploads\/2025\/07\/image.png 1231w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u80cc\u666f\">\u94fe\u63a5\/Resource<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/alibaba\/arthas\">https:\/\/github.com\/alibaba\/arthas<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/arthas.aliyun.com\/doc\">https:\/\/arthas.aliyun.com\/doc<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u80cc\u666f\">\u80cc\u666f\/Background<\/h2>\n\n\n\n<p>\u901a\u5e38\uff0c\u672c\u5730\u5f00\u53d1\u73af\u5883\u65e0\u6cd5\u8bbf\u95ee\u751f\u4ea7\u73af\u5883\u3002\u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u5219\u65e0\u6cd5\u4f7f\u7528 IDE \u8fdc\u7a0b\u8c03\u8bd5\u3002\u66f4\u7cdf\u7cd5\u7684\u662f\uff0c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u8c03\u8bd5\u662f\u4e0d\u53ef\u63a5\u53d7\u7684\uff0c\u56e0\u4e3a\u5b83\u4f1a\u6682\u505c\u6240\u6709\u7ebf\u7a0b\uff0c\u5bfc\u81f4\u670d\u52a1\u6682\u505c\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5c1d\u8bd5\u5728\u6d4b\u8bd5\u73af\u5883\u6216\u8005\u9884\u53d1\u73af\u5883\u4e2d\u590d\u73b0\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u95ee\u9898\u3002\u4f46\u662f\uff0c\u67d0\u4e9b\u95ee\u9898\u65e0\u6cd5\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u8f7b\u677e\u590d\u73b0\uff0c\u751a\u81f3\u5728\u91cd\u65b0\u542f\u52a8\u540e\u5c31\u6d88\u5931\u4e86\u3002\u5982\u679c\u60a8\u6b63\u5728\u8003\u8651\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0\u4e00\u4e9b\u65e5\u5fd7\u4ee5\u5e2e\u52a9\u89e3\u51b3\u95ee\u9898\uff0c\u60a8\u5c06\u5fc5\u987b\u7ecf\u5386\u4ee5\u4e0b\u9636\u6bb5\uff1a\u6d4b\u8bd5\u3001\u9884\u53d1\uff0c\u7136\u540e\u751f\u4ea7\u3002\u8fd9\u79cd\u65b9\u6cd5\u6548\u7387\u4f4e\u4e0b\uff0c\u66f4\u7cdf\u7cd5\u7684\u662f\uff0c\u8be5\u95ee\u9898\u53ef\u80fd\u65e0\u6cd5\u89e3\u51b3\uff0c\u56e0\u4e3a\u4e00\u65e6 JVM \u91cd\u65b0\u542f\u52a8\uff0c\u5b83\u53ef\u80fd\u65e0\u6cd5\u590d\u73b0\uff0c\u5982\u4e0a\u6587\u6240\u8ff0\u3002Arthas \u65e8\u5728\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5728\u7ebf\u89e3\u51b3\u751f\u4ea7\u95ee\u9898\u3002\u65e0\u9700 JVM \u91cd\u542f\uff0c\u65e0\u9700\u4ee3\u7801\u66f4\u6539\u3002 Arthas \u4f5c\u4e3a\u89c2\u5bdf\u8005\u6c38\u8fdc\u4e0d\u4f1a\u6682\u505c\u6b63\u5728\u8fd0\u884c\u7684\u7ebf\u7a0b\u3002<\/p>\n\n\n\n<p>\u4e3a\u4ec0\u4e48\u9009\u62e9Arths ? \u5728Arthas\u51fa\u73b0\u4e4b\u524d\uff0cJAVA\u7ebf\u4e0a\u5e73\u53f0\u95ee\u9898\u6392\u67e5\u4e3b\u8981\u4f9d\u8d56\u4e8e\u4ee5\u4e0b\u51e0\u79cd\u5904\u7406\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<p>1.<strong>\u65e5\u5fd7\u5206\u6790\uff1a<\/strong>\u9700\u8981\u9884\u5148\u57cb\u70b9\uff0c\u8003\u8651\u6b65\u9aa4\u7684\u60c5\u51b5\u4e0b\uff0c\u95ee\u9898\u51fa\u73b0\u65f6\u53ef\u80fd\u6ca1\u6709\u76f8\u5173\u65e5\u5fd7\uff1b<\/p>\n\n\n\n<p>2.<strong>JVM\u53c2\u6570\u8c03\u4f18\uff1a<\/strong>\u9700\u8981\u91cd\u542f\u5e94\u7528\uff0c\u5f71\u54cd\u4e1a\u52a1\u7684\u8fde\u7eed\u6027\uff1b<\/p>\n\n\n\n<p>3.<strong>\u7b2c\u4e09\u65b9\u76d1\u63a7\u5de5\u5177\uff1a<\/strong>\u5982APM, Prometheus\u7b49\uff0c\u8fd9\u7c7b\u5de5\u5177\u914d\u7f6e\u8f83\u4e3a\u590d\u6742\uff0c\u5b66\u4e60\u66f2\u7ebf\u9661\u5ced\uff1b<\/p>\n\n\n\n<p><code>Arthas<\/code>&nbsp;\u662fAlibaba\u5f00\u6e90\u7684Java\u7ebf\u4e0a\u8bca\u65ad\u5de5\u5177, <code>Arthas<\/code>\u7684\u51fa\u73b0\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u89e3\u51b3\u4ee5\u4e0b\u573a\u666f\u95ee\u9898\uff1a<\/p>\n\n\n\n<ul start=\"0\" class=\"wp-block-list\">\n<li>\u8fd9\u4e2a\u7c7b\u4ece\u54ea\u4e2a jar \u5305\u52a0\u8f7d\u7684\uff1f\u4e3a\u4ec0\u4e48\u4f1a\u62a5\u5404\u79cd\u7c7b\u76f8\u5173\u7684 Exception\uff1f<\/li>\n\n\n\n<li>\u6211\u6539\u7684\u4ee3\u7801\u4e3a\u4ec0\u4e48\u6ca1\u6709\u6267\u884c\u5230\uff1f\u96be\u9053\u662f\u6211\u6ca1 commit\uff1f\u5206\u652f\u641e\u9519\u4e86\uff1f<\/li>\n\n\n\n<li>\u9047\u5230\u95ee\u9898\u65e0\u6cd5\u5728\u7ebf\u4e0a debug\uff0c\u96be\u9053\u53ea\u80fd\u901a\u8fc7\u52a0\u65e5\u5fd7\u518d\u91cd\u65b0\u53d1\u5e03\u5417\uff1f<\/li>\n\n\n\n<li>\u7ebf\u4e0a\u9047\u5230\u67d0\u4e2a\u7528\u6237\u7684\u6570\u636e\u5904\u7406\u6709\u95ee\u9898\uff0c\u4f46\u7ebf\u4e0a\u540c\u6837\u65e0\u6cd5 debug\uff0c\u7ebf\u4e0b\u65e0\u6cd5\u91cd\u73b0\uff01<\/li>\n\n\n\n<li>\u662f\u5426\u6709\u4e00\u4e2a\u5168\u5c40\u89c6\u89d2\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u8fd0\u884c\u72b6\u51b5\uff1f<\/li>\n\n\n\n<li>\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u76d1\u63a7\u5230JVM\u7684\u5b9e\u65f6\u8fd0\u884c\u72b6\u6001\uff1f<\/li>\n\n\n\n<li>\u600e\u4e48\u5feb\u901f\u5b9a\u4f4d\u5e94\u7528\u7684\u70ed\u70b9\uff0c\u751f\u6210\u706b\u7130\u56fe\uff1f<\/li>\n\n\n\n<li>\u600e\u6837\u76f4\u63a5\u4eceJVM\u5185\u67e5\u627e\u67d0\u4e2a\u7c7b\u7684\u5b9e\u4f8b\uff1f<\/li>\n<\/ul>\n\n\n\n<p><code>Arthas<\/code>\u652f\u6301JDK 6+\uff084.x \u7248\u672c\u4e0d\u518d\u652f\u6301 JDK 6 \u548c JDK 7\uff09\uff0c\u652f\u6301Linux\/Mac\/Windows\uff0c\u91c7\u7528\u547d\u4ee4\u884c\u4ea4\u4e92\u6a21\u5f0f\uff0c\u540c\u65f6\u63d0\u4f9b\u4e30\u5bcc\u7684&nbsp;<code>Tab<\/code>&nbsp;\u81ea\u52a8\u8865\u5168\u529f\u80fd\uff0c\u8fdb\u4e00\u6b65\u65b9\u4fbf\u8fdb\u884c\u95ee\u9898\u7684\u5b9a\u4f4d\u548c\u8bca\u65ad\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5feb\u901f\u5b89\u88c5\/Install<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -O https:\/\/arthas.aliyun.com\/arthas-boot.jar\njava -jar arthas-boot.jar<\/code><\/pre>\n\n\n\n<p>\u6253\u5370\u5e2e\u52a9\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -jar arthas-boot.jar -h<\/code><\/pre>\n\n\n\n<p>* \u5982\u679c\u4e0b\u8f7d\u8f83\u6162\uff0c\u53ef\u4f7f\u7528\u963f\u91cc\u4e91\u955c\u50cf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -jar arthas-boot.jar --repo-mirror aliyun --use-http<\/code><\/pre>\n\n\n\n<p>\u66f4\u591a\u5b89\u88c5\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/arthas.aliyun.com\/doc\/install-detail.html\">https:\/\/arthas.aliyun.com\/doc\/install-detail.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u57fa\u7840\u547d\u4ee4\">\u7528\u6237\u6848\u4f8b\/Use Case<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/alibaba\/arthas\/issues?q=label%3Auser-case\">https:\/\/github.com\/alibaba\/arthas\/issues?q=label%3Auser-case<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/juejin.cn\/post\/6968289655284482084\">https:\/\/juejin.cn\/post\/6968289655284482084<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u94fe\u63a5\/Resource https:\/\/github.com\/alibaba\/arthas https:\/\/a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/101.43.65.133:8899\/?p=578\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Arthas | Alibaba JAVA\u5f00\u6e90\u7ebf\u4e0a\u76d1\u63a7\u8bca\u65ad\u5de5\u5177&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[103,101,24,76,100,102],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-it-engineer","tag-arthas","tag-github","tag-it","tag-java","tag-100","tag-102"],"_links":{"self":[{"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=578"}],"version-history":[{"count":11,"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":750,"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=\/wp\/v2\/posts\/578\/revisions\/750"}],"wp:attachment":[{"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/101.43.65.133:8899\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}