import{_ as c,o as i,c as h,b as t,w as s,a as o,d as l,e,r as n}from"./app.5024572d.js";const _={},u=l(`

\u7528\u6237\u95EE\u9898 \uFF1A

arthas \u600E\u6837\u67E5\u770B\u65B9\u6CD5\u8017\u65F6


\u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54 \uFF1A

\u8981\u4F7F\u7528Arthas\u67E5\u770B\u65B9\u6CD5\u7684\u8017\u65F6\uFF0C\u53EF\u4EE5\u91C7\u7528Arthas\u7684trace\u547D\u4EE4\uFF0C\u8BE5\u547D\u4EE4\u80FD\u81EA\u52A8\u9AD8\u4EAE\u663E\u793A\u6700\u8017\u65F6\u7684\u65B9\u6CD5\u8C03\u7528\uFF0C\u975E\u5E38\u9002\u5408\u8FDB\u884C\u6027\u80FD\u5206\u6790\u3002\u4EE5\u4E0B\u662F\u5177\u4F53\u7684\u64CD\u4F5C\u6B65\u9AA4\uFF1A

  1. \u542F\u52A8Arthas
    \u9996\u5148\uFF0C\u4F60\u9700\u8981\u542F\u52A8Arthas\u5E76\u8FDE\u63A5\u5230\u76EE\u6807Java\u8FDB\u7A0B\u3002\u5728\u547D\u4EE4\u884C\u4E2D\uFF0C\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\uFF08\u5047\u8BBEArthas\u7684\u811A\u672C\u8DEF\u5F84\u4E3A./as.sh\uFF09\uFF1A

    ./as.sh
    

    \u63A5\u7740\uFF0C\u4ECE\u5217\u51FA\u7684Java\u8FDB\u7A0B\u4E2D\u9009\u62E9\u4F60\u8981\u76D1\u63A7\u7684\u5E94\u7528\u8FDB\u7A0B\u3002

  2. \u4F7F\u7528trace\u547D\u4EE4
    \u63A5\u4E0B\u6765\uFF0C\u4F7F\u7528trace\u547D\u4EE4\u6307\u5B9A\u4F60\u60F3\u8981\u76D1\u63A7\u7684\u65B9\u6CD5\u3002\u4F8B\u5982\uFF0C\u5982\u679C\u4F60\u60F3\u8981\u76D1\u63A7com.example.YourClass.yourMethod\u65B9\u6CD5\u7684\u8017\u65F6\uFF0C\u53EF\u4EE5\u6267\u884C\uFF1A

    trace com.example.YourClass yourMethod
    

    \u8FD9\u5C06\u4F1A\u5F00\u59CB\u8DDF\u8E2A\u8BE5\u65B9\u6CD5\u53CA\u5176\u5185\u90E8\u7684\u6240\u6709\u8C03\u7528\uFF0C\u5E76\u663E\u793A\u6BCF\u4E2A\u8C03\u7528\u7684\u8017\u65F6\u4EE5\u53CA\u88AB\u8C03\u7528\u7684\u6B21\u6570\u3002

  3. \u67E5\u770B\u81EA\u52A8\u9AD8\u4EAE\u663E\u793A\u7684\u7ED3\u679C
    Arthas\u7684trace\u547D\u4EE4\u73B0\u5728\u5177\u5907\u81EA\u52A8\u9AD8\u4EAE\u663E\u793A\u6700\u8017\u65F6\u65B9\u6CD5\u8C03\u7528\u7684\u529F\u80FD\uFF0C\u5982\u53C2\u8003\u5185\u5BB9\u4E2D\u63D0\u5230\u7684\uFF0C\u5B83\u80FD\u76F4\u89C2\u5730\u5C55\u793A\u6027\u80FD\u74F6\u9888\u6240\u5728\u3002\u5728\u547D\u4EE4\u6267\u884C\u540E\uFF0C\u63A7\u5236\u53F0\u4F1A\u8F93\u51FA\u76F8\u5173\u7684\u8C03\u7528\u94FE\u8DEF\u548C\u65F6\u95F4\u6D88\u8017\u4FE1\u606F\uFF0C\u5176\u4E2D\u6700\u8017\u65F6\u7684\u8C03\u7528\u4F1A\u88AB\u7279\u522B\u6807\u6CE8\u6216\u6392\u5E8F\u5728\u524D\uFF0C\u4FBF\u4E8E\u5FEB\u901F\u5B9A\u4F4D\u95EE\u9898\u3002

  4. \uFF08\u53EF\u9009\uFF09\u901A\u8FC7Web\u754C\u9762\u67E5\u770Bprofiler\u7ED3\u679C
    \u53E6\u5916\uFF0C\u5982\u679C\u4F60\u5BF9\u6027\u80FD\u6570\u636E\u6709\u66F4\u8FDB\u4E00\u6B65\u7684\u53EF\u89C6\u5316\u9700\u6C42\uFF0C\u53EF\u4EE5\u5229\u7528Arthas\u7684Web\u754C\u9762\u3002\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0CArthas\u4F1A\u5728\u672C\u5730\u76843658\u7AEF\u53E3\u63D0\u4F9B\u670D\u52A1\uFF0C\u8BBF\u95EEhttp://localhost:3658/arthas-output/\uFF0C\u4F60\u53EF\u4EE5\u5728\u6D4F\u89C8\u5668\u4E2D\u67E5\u770B\u5305\u62ECprofiler\u7ED3\u679C\u5728\u5185\u7684\u5404\u79CD\u8F93\u51FA\u4FE1\u606F\u3002\u8FD9\u5728\u67D0\u4E9B\u573A\u666F\u4E0B\u80FD\u63D0\u4F9B\u66F4\u53CB\u597D\u7684\u4EA4\u4E92\u4F53\u9A8C\uFF0C\u5C24\u5176\u662F\u5F53\u4F60\u9700\u8981\u5206\u6790\u590D\u6742\u8C03\u7528\u94FE\u6216\u4E0E\u56E2\u961F\u6210\u5458\u5171\u4EAB\u5206\u6790\u7ED3\u679C\u65F6\u3002

\u8BF7\u6CE8\u610F\uFF0C\u6839\u636E\u5B9E\u9645\u5E94\u7528\u7684\u60C5\u51B5\u8C03\u6574\u76D1\u63A7\u7684\u7C92\u5EA6\u548C\u6DF1\u5EA6\uFF0C\u907F\u514D\u56E0\u8FC7\u5EA6\u8FFD\u8E2A\u5BFC\u81F4\u7684\u6027\u80FD\u5F00\u9500\u3002\u6B64\u5916\uFF0C\u9891\u7E41\u5237\u65B0\u6D4F\u89C8\u5668\u9875\u9762\uFF08\u7279\u522B\u662F\u5728\u4F7F\u7528Chrome\u6D4F\u89C8\u5668\u65F6\uFF09\u53EF\u80FD\u6709\u52A9\u4E8E\u786E\u4FDD\u6570\u636E\u7684\u5B9E\u65F6\u66F4\u65B0\u3002

\u901A\u8FC7\u8FD9\u4E9B\u6B65\u9AA4\uFF0C\u4F60\u53EF\u4EE5\u6709\u6548\u5730\u5229\u7528Arthas\u6765\u8BCA\u65AD\u548C\u4F18\u5316Java\u5E94\u7528\u4E2D\u7684\u65B9\u6CD5\u8017\u65F6\u95EE\u9898\u3002

`,8),p=e("---------------"),f=o("h2",{id:"\u53C2\u8003\u94FE\u63A5",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#\u53C2\u8003\u94FE\u63A5","aria-hidden":"true"},"#"),e(" \u53C2\u8003\u94FE\u63A5 \uFF1A")],-1),b=e("Arthas3.0 \u7684\u65B0\u7279\u6027"),m=e("profiler"),g=e("\u4E13\u5BB6\u7ECF\u9A8C\uFF1A\u5229\u7528Arthas\u6392\u67E5NoSuchMethodError"),v=e("---------------"),x={id:"\u7B54\u7591\u670D\u52A1\u8BF4\u660E",tabindex:"-1"},A=o("a",{class:"header-anchor",href:"#\u7B54\u7591\u670D\u52A1\u8BF4\u660E","aria-hidden":"true"},"#",-1),k=e(),y=e("\u7B54\u7591\u670D\u52A1\u8BF4\u660E\uFF1A"),F=e("\u672C\u5185\u5BB9\u7ECF\u7531\u6280\u672F\u4E13\u5BB6\u5BA1\u9605\u7684\u7528\u6237\u95EE\u7B54\u7684\u955C\u50CF\u751F\u6210\uFF0C\u6211\u4EEC\u63D0\u4F9B\u4E86"),C=e("\u4E13\u5BB6\u667A\u80FD\u7B54\u7591\u670D\u52A1"),E=e("\uFF0C\u5728"),J=e("\u9875\u9762\u7684\u53F3\u4E0B\u7684\u6D6E\u7A97\u201D\u4E13\u5BB6\u7B54\u7591\u201C"),N=e("\u3002\u60A8\u4E5F\u53EF\u4EE5\u8BBF\u95EE : "),B={href:"https://answer.opensource.alibaba.com/docs/intro",target:"_blank",rel:"noopener noreferrer"},I=e("\u5168\u5C40\u4E13\u5BB6\u7B54\u7591"),L=e(" \u3002 \u54A8\u8BE2\u5176\u4ED6\u4EA7\u54C1\u7684\u7684\u95EE\u9898"),O=o("h3",{id:"\u53CD\u9988",tabindex:"-1"},[o("a",{class:"header-anchor",href:"#\u53CD\u9988","aria-hidden":"true"},"#"),e(" \u53CD\u9988")],-1),V=e("\u5982\u95EE\u7B54\u6709\u9519\u6F0F\uFF0C\u6B22\u8FCE\u70B9\uFF1A"),w={href:"https://ai.nacos.io/user/feedbackByEnhancerGradePOJOID?enhancerGradePOJOId=16047",target:"_blank",rel:"noopener noreferrer"},M=e("\u5DEE\u8BC4"),q=e("\u7ED9\u6211\u4EEC\u53CD\u9988\u3002");function G(P,R){const a=n("font"),r=n("RouterLink"),d=n("ExternalLinkIcon");return i(),h("div",null,[u,t(a,{color:"#949494"},{default:s(()=>[p]),_:1}),f,o("p",null,[t(r,{to:"/doc/arthas3.html"},{default:s(()=>[b]),_:1})]),o("p",null,[t(r,{to:"/doc/profiler.html"},{default:s(()=>[m]),_:1})]),o("p",null,[t(r,{to:"/doc/expert/user-question-history14763.html"},{default:s(()=>[g]),_:1})]),t(a,{color:"#949494"},{default:s(()=>[v]),_:1}),o("h2",x,[A,k,t(a,{color:"#FF0000"},{default:s(()=>[y]),_:1})]),o("p",null,[F,t(a,{color:"#FF0000"},{default:s(()=>[C]),_:1}),E,t(a,{color:"#FF0000"},{default:s(()=>[J]),_:1}),N,o("a",B,[I,t(d)]),L]),O,o("p",null,[V,o("a",w,[M,t(d)]),q])])}const W=c(_,[["render",G],["__file","user-question-history11453.html.vue"]]);export{W as default};