mirror of https://github.com/alibaba/arthas.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
7.7 KiB
JavaScript
5 lines
7.7 KiB
JavaScript
import{_ as d,o as i,c,b as o,w as a,a as t,d as l,e,r as n}from"./app.977e81c1.js";const h={},_=l(`<h2 id="\u7528\u6237\u95EE\u9898" tabindex="-1"><a class="header-anchor" href="#\u7528\u6237\u95EE\u9898" aria-hidden="true">#</a> \u7528\u6237\u95EE\u9898 \uFF1A</h2><p>arthas \u600E\u4E48\u67E5\u770B\u5185\u5B58\u60C5\u51B5\uFF1F</p><hr><h2 id="\u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54" tabindex="-1"><a class="header-anchor" href="#\u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54" aria-hidden="true">#</a> \u4E13\u5BB6\u5B98\u65B9\u89E3\u7B54 \uFF1A</h2><p>\u8981\u4F7F\u7528Arthas\u67E5\u770BJava\u5E94\u7528\u7A0B\u5E8F\u7684\u5185\u5B58\u60C5\u51B5\uFF0C\u53EF\u4EE5\u9075\u5FAA\u4EE5\u4E0B\u6B65\u9AA4\uFF1A</p><ol><li><p><strong>\u8FDE\u63A5\u76EE\u6807Java\u8FDB\u7A0B</strong><br> \u9996\u5148\u786E\u4FDDArthas\u5DE5\u5177\u5DF2\u7ECF\u5B89\u88C5\u5E76\u914D\u7F6E\u597D\u73AF\u5883\u3002\u7136\u540E\u901A\u8FC7\u547D\u4EE4\u884C\u8FDE\u63A5\u5230\u4F60\u60F3\u8981\u76D1\u63A7\u7684Java\u8FDB\u7A0B\u3002\u4F8B\u5982\uFF0C\u5982\u679C\u4F60\u7684\u76EE\u6807\u8FDB\u7A0BID\u662F1234\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u4EE5\u4E0B\u547D\u4EE4\u542F\u52A8Arthas\u5E76\u8FDE\u63A5\u8BE5\u8FDB\u7A0B\uFF1A</p><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>arthas.sh attach 1234
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div></li><li><p><strong>\u68C0\u67E5JVM\u5185\u5B58\u72B6\u6001</strong><br> \u4F7F\u7528<code>memory</code>\u547D\u4EE4\u67E5\u770B\u5F53\u524DJVM\u7684\u5185\u5B58\u4F7F\u7528\u6982\u51B5\u3002\u8FD9\u4F1A\u63D0\u4F9B\u5806\u5185\u5B58\u3001\u975E\u5806\u5185\u5B58\u53CA\u5404\u4E2A\u7EC6\u5206\u533A\u57DF\u5982Eden\u3001Survivor\u3001Old Generation\u7B49\u7684\u4F7F\u7528\u60C5\u51B5\u3002\u591A\u6B21\u6267\u884C\u6B64\u547D\u4EE4\u53EF\u4EE5\u5E2E\u52A9\u4F60\u89C2\u5BDF\u5185\u5B58\u53D8\u5316\u8D8B\u52BF\uFF0C\u4EE5\u8BC6\u522B\u662F\u5426\u6709\u5185\u5B58\u6CC4\u9732\u7684\u8FF9\u8C61\u3002\u6267\u884C\u547D\u4EE4\u5982\u4E0B\uFF1A</p><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>memory
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>\u6839\u636E\u8FD4\u56DE\u7684\u4FE1\u606F\uFF0C\u6CE8\u610F\u90A3\u4E9B\u6301\u7EED\u589E\u957F\u800C\u6CA1\u6709\u51CF\u5C11\u7684\u5185\u5B58\u533A\u57DF\uFF0C\u8FD9\u4E9B\u53EF\u80FD\u662F\u5185\u5B58\u6CC4\u6F0F\u7684\u6765\u6E90\u3002</p></li><li><p><strong>\u5206\u6790\u5806\u5185\u5B58</strong><br> \u5982\u679C\u6000\u7591\u5B58\u5728\u5185\u5B58\u6CC4\u9732\uFF0C\u53EF\u4EE5\u4F7F\u7528<code>heapdump</code>\u547D\u4EE4\u751F\u6210\u5806\u5185\u5B58\u5FEB\u7167\u3002\u8FD9\u5C06\u521B\u5EFA\u4E00\u4E2A.hprof\u6587\u4EF6\uFF0C\u53EF\u4EE5\u4F7F\u7528Eclipse Memory Analyzer (MAT)\u7B49\u5DE5\u5177\u8FDB\u4E00\u6B65\u5206\u6790\u3002</p><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>heapdump /path/to/dump.hprof
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>\u5206\u6790\u5806\u8F6C\u50A8\u6587\u4EF6\uFF0C\u67E5\u627E\u4E0D\u65AD\u589E\u957F\u7684\u5BF9\u8C61\u6570\u91CF\u6216\u5F02\u5E38\u5927\u7684\u5BF9\u8C61\uFF0C\u8FD9\u6709\u52A9\u4E8E\u7CBE\u786E\u5B9A\u4F4D\u5185\u5B58\u6CC4\u6F0F\u7684\u5BF9\u8C61\u7C7B\u578B\u53CA\u5176\u5F15\u7528\u94FE\u8DEF\u3002</p></li><li><p><strong>\u6301\u7EED\u76D1\u63A7</strong><br> \u5BF9\u6BD4\u4E0D\u540C\u65F6\u95F4\u70B9\u7684<code>memory</code>\u547D\u4EE4\u7ED3\u679C\u548C\u5806\u5185\u5B58\u5FEB\u7167\u5206\u6790\uFF0C\u53EF\u4EE5\u66F4\u51C6\u786E\u5730\u5B9A\u4F4D\u95EE\u9898\u3002\u5982\u679C\u53D1\u73B0\u7279\u5B9A\u533A\u57DF\u5185\u5B58\u6301\u7EED\u589E\u957F\uFF0C\u8BF7\u7ED3\u5408\u5E94\u7528\u7A0B\u5E8F\u903B\u8F91\u548C\u4EE3\u7801\u5BA1\u67E5\uFF0C\u627E\u51FA\u53EF\u80FD\u7684\u5185\u5B58\u6CC4\u9732\u539F\u56E0\u3002</p></li></ol><p><strong>\u89E3\u91CA\u8BF4\u660E\uFF1A</strong></p><ul><li>\u4E0A\u8FF0\u6B65\u9AA4\u9996\u5148\u5E2E\u52A9\u4F60\u5FEB\u901F\u6982\u89C8JVM\u7684\u5185\u5B58\u4F7F\u7528\u60C5\u51B5\uFF0C\u901A\u8FC7\u591A\u6B21\u5BF9\u6BD4<code>memory</code>\u547D\u4EE4\u7684\u8F93\u51FA\uFF0C\u80FD\u591F\u76F4\u89C2\u53D1\u73B0\u6F5C\u5728\u7684\u5185\u5B58\u6CC4\u6F0F\u533A\u57DF\u3002</li><li><code>heapdump</code>\u547D\u4EE4\u5219\u63D0\u4F9B\u4E86\u6DF1\u5165\u5206\u6790\u7684\u624B\u6BB5\uFF0C\u901A\u8FC7\u5206\u6790\u5806\u5185\u5B58\u5FEB\u7167\uFF0C\u53EF\u4EE5\u5177\u4F53\u5B9A\u4F4D\u5230\u5BFC\u81F4\u5185\u5B58\u6CC4\u6F0F\u7684\u5BF9\u8C61\u5B9E\u4F8B\uFF0C\u8FD9\u5BF9\u4E8E\u89E3\u51B3\u5185\u5B58\u6CC4\u9732\u95EE\u9898\u81F3\u5173\u91CD\u8981\u3002</li><li>\u6CE8\u610F\uFF0C\u9891\u7E41\u4F7F\u7528<code>heapdump</code>\u53EF\u80FD\u4F1A\u5BF9\u5E94\u7528\u6027\u80FD\u4EA7\u751F\u5F71\u54CD\uFF0C\u56E0\u6B64\u5728\u751F\u4EA7\u73AF\u5883\u4E2D\u5E94\u8C28\u614E\u64CD\u4F5C\uFF0C\u6700\u597D\u5728\u4F4E\u5CF0\u65F6\u6BB5\u8FDB\u884C\u3002</li></ul><p>\u5982\u679C\u5728\u6267\u884C\u4E0A\u8FF0\u6B65\u9AA4\u540E\u4ECD\u65E0\u6CD5\u786E\u5B9A\u95EE\u9898\u6240\u5728\uFF0C\u53EF\u80FD\u9700\u8981\u7ED3\u5408\u5177\u4F53\u7684\u5E94\u7528\u65E5\u5FD7\u3001\u4EE3\u7801\u5BA1\u67E5\uFF0C\u751A\u81F3\u8003\u8651\u8C03\u6574JVM\u53C2\u6570\uFF08\u5982-Xms, -Xmx\u7B49\uFF09\u6765\u8FDB\u4E00\u6B65\u8BCA\u65AD\u95EE\u9898\u3002</p>`,9),p=e("---------------"),u=t("h2",{id:"\u53C2\u8003\u94FE\u63A5",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#\u53C2\u8003\u94FE\u63A5","aria-hidden":"true"},"#"),e(" \u53C2\u8003\u94FE\u63A5 \uFF1A")],-1),m=t("p",null,"*\u4E13\u5BB6\u7ECF\u9A8C\uFF1AArthas \u6392\u67E5\u5185\u5B58\u6CC4\u9732\u7684\u65B9\u6CD5",-1),f=e("*"),b={href:"https://github.com/alibaba/arthas/tree/master/site/docs/doc/profiler.md",target:"_blank",rel:"noopener noreferrer"},g=e("# profiler"),v=t("p",null,"*\u4E13\u5BB6\u7ECF\u9A8C\uFF1Aarthas\u542F\u52A8\u65F6\u5185\u5B58\u6EA2\u51FA",-1),x=e("---------------"),y={id:"\u7B54\u7591\u670D\u52A1\u8BF4\u660E",tabindex:"-1"},J=t("a",{class:"header-anchor",href:"#\u7B54\u7591\u670D\u52A1\u8BF4\u660E","aria-hidden":"true"},"#",-1),k=e(),V=e("\u7B54\u7591\u670D\u52A1\u8BF4\u660E\uFF1A"),A=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"),E=e("\u4E13\u5BB6\u667A\u80FD\u7B54\u7591\u670D\u52A1"),F=e("\uFF0C\u5728"),M=e("\u9875\u9762\u7684\u53F3\u4E0B\u7684\u6D6E\u7A97\u201D\u4E13\u5BB6\u7B54\u7591\u201C"),I=e("\u3002\u60A8\u4E5F\u53EF\u4EE5\u8BBF\u95EE : "),O={href:"https://answer.opensource.alibaba.com/docs/intro",target:"_blank",rel:"noopener noreferrer"},B=e("\u5168\u5C40\u4E13\u5BB6\u7B54\u7591"),N=e(" \u3002 \u54A8\u8BE2\u5176\u4ED6\u4EA7\u54C1\u7684\u7684\u95EE\u9898"),w=t("h3",{id:"\u53CD\u9988",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#\u53CD\u9988","aria-hidden":"true"},"#"),e(" \u53CD\u9988")],-1),G=e("\u5982\u95EE\u7B54\u6709\u9519\u6F0F\uFF0C\u6B22\u8FCE\u70B9\uFF1A"),C={href:"https://ai.nacos.io/user/feedbackByEnhancerGradePOJOID?enhancerGradePOJOId=16060",target:"_blank",rel:"noopener noreferrer"},D=e("\u5DEE\u8BC4"),L=e("\u7ED9\u6211\u4EEC\u53CD\u9988\u3002");function P(S,T){const s=n("font"),r=n("ExternalLinkIcon");return i(),c("div",null,[_,o(s,{color:"#949494"},{default:a(()=>[p]),_:1}),u,m,t("p",null,[f,t("a",b,[g,o(r)])]),v,o(s,{color:"#949494"},{default:a(()=>[x]),_:1}),t("h2",y,[J,k,o(s,{color:"#FF0000"},{default:a(()=>[V]),_:1})]),t("p",null,[A,o(s,{color:"#FF0000"},{default:a(()=>[E]),_:1}),F,o(s,{color:"#FF0000"},{default:a(()=>[M]),_:1}),I,t("a",O,[B,o(r)]),N]),w,t("p",null,[G,t("a",C,[D,o(r)]),L])])}const q=d(h,[["render",P],["__file","user-question-history12454.html.vue"]]);export{q as default};
|