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.
4 lines
8.1 KiB
JavaScript
4 lines
8.1 KiB
JavaScript
import{_ as d,o as i,c as h,b as o,w as a,a as t,d as l,e,r as n}from"./app.5024572d.js";const _={},p=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>Start arthas failed, exception stack trace: com.sun.tools.attach.AttachOperationFailedException: java.lang.OutOfMemoryError: Java heap space</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>\u6839\u636E\u5DF2\u6709\u7684\u77E5\u8BC6\u5185\u5BB9\uFF0C\u6211\u4EEC\u53EF\u4EE5\u5206\u6790\u5E76\u89E3\u7B54\u60A8\u7684\u95EE\u9898\u3002</p><p><strong>\u95EE\u9898\u73B0\u8C61\uFF1A</strong> \u60A8\u5728\u5C1D\u8BD5\u542F\u52A8<code>arthas</code>\u65F6\u9047\u5230\u4E86\u5185\u5B58\u6EA2\u51FA\u9519\u8BEF\uFF0C\u5177\u4F53\u5F02\u5E38\u4E3A\uFF1A</p><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>[ERROR] Start arthas failed, exception stack trace:
|
|
com.sun.tools.attach.AttachOperationFailedException: java.lang.OutOfMemoryError: Java heap space
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div><p><strong>\u539F\u56E0\u5206\u6790\uFF1A</strong> \u8BE5\u9519\u8BEF\u8868\u660E<code>arthas</code>\u5728\u5C1D\u8BD5\u9644\u52A0\u5230\u76EE\u6807Java\u8FDB\u7A0B\u65F6\uFF0C\u7531\u4E8EJava\u5806\u7A7A\u95F4\u4E0D\u8DB3\u5BFC\u81F4\u542F\u52A8\u5931\u8D25\u3002<code>arthas</code>\u4F5C\u4E3A\u4E00\u4E2AJava\u5E94\u7528\uFF0C\u5728\u8FD0\u884C\u65F6\u540C\u6837\u9700\u8981\u5360\u7528\u4E00\u5B9A\u7684\u5185\u5B58\u8D44\u6E90\u3002\u5F53\u76EE\u6807\u5E94\u7528\u7A0B\u5E8F\u672C\u8EAB\u7684\u5185\u5B58\u4F7F\u7528\u5DF2\u7ECF\u63A5\u8FD1\u6216\u8FBE\u5230\u6781\u9650\u65F6\uFF0C\u989D\u5916\u52A0\u8F7D<code>arthas</code>\u6240\u9700\u7684\u5185\u5B58\u5206\u914D\u5C31\u4F1A\u5931\u8D25\uFF0C\u4ECE\u800C\u5F15\u53D1<code>OutOfMemoryError</code>\u3002</p><p><strong>\u89E3\u51B3\u65B9\u6848\uFF1A</strong> \u6839\u636E\u63D0\u4F9B\u7684\u77E5\u8BC6\u5185\u5BB9\uFF0C\u89E3\u51B3\u6B64\u95EE\u9898\u7684\u5EFA\u8BAE\u662F\u8C03\u6574\u76EE\u6807Java\u5E94\u7528\u7684\u5185\u5B58\u8BBE\u7F6E\uFF0C\u4EE5\u786E\u4FDD\u5728\u9644\u52A0<code>arthas</code>\u65F6\u6709\u8DB3\u591F\u7684\u5185\u5B58\u7A7A\u95F4\u3002\u5177\u4F53\u6B65\u9AA4\u5982\u4E0B\uFF1A</p><ol><li><p><strong>\u786E\u5B9A\u5F53\u524D\u5185\u5B58\u914D\u7F6E\uFF1A</strong> \u9996\u5148\uFF0C\u68C0\u67E5\u60A8\u7684Java\u5E94\u7528\u5F53\u524D\u7684JVM\u5185\u5B58\u914D\u7F6E\u3002\u8FD9\u901A\u5E38\u901A\u8FC7\u542F\u52A8\u811A\u672C\u6216\u547D\u4EE4\u884C\u53C2\u6570\u6307\u5B9A\uFF0C\u5982<code>-Xms</code>\uFF08\u521D\u59CB\u5806\u5927\u5C0F\uFF09\u548C<code>-Xmx</code>\uFF08\u6700\u5927\u5806\u5927\u5C0F\uFF09\u3002</p></li><li><p><strong>\u589E\u52A0\u5806\u5185\u5B58\u5927\u5C0F\uFF1A</strong> \u6839\u636E\u5E94\u7528\u7684\u5B9E\u9645\u9700\u6C42\u548C\u7CFB\u7EDF\u8D44\u6E90\u60C5\u51B5\uFF0C\u9002\u5F53\u589E\u52A0<code>-Xmx</code>\u7684\u503C\u3002\u4F8B\u5982\uFF0C\u5982\u679C\u5F53\u524D\u6700\u5927\u5806\u5927\u5C0F\u662F<code>-Xmx1024m</code>\uFF0C\u60A8\u53EF\u4EE5\u5C1D\u8BD5\u5C06\u5176\u589E\u52A0\u5230<code>-Xmx2048m</code>\u6216\u66F4\u9AD8\uFF0C\u786E\u4FDD\u6709\u8DB3\u591F\u7A7A\u95F4\u5BB9\u7EB3<code>arthas</code>\u8FD0\u884C\u6240\u9700\u3002</p></li><li><p><strong>\u91CD\u542F\u5E94\u7528\uFF1A</strong> \u4FEE\u6539\u914D\u7F6E\u540E\uFF0C\u9700\u8981\u91CD\u542F\u76EE\u6807Java\u5E94\u7528\uFF0C\u4F7F\u65B0\u7684\u5185\u5B58\u8BBE\u7F6E\u751F\u6548\u3002</p></li><li><p><strong>\u518D\u6B21\u5C1D\u8BD5\u542F\u52A8arthas\uFF1A</strong> \u5728\u786E\u4FDD\u5E94\u7528\u5DF2\u6839\u636E\u65B0\u914D\u7F6E\u91CD\u542F\u540E\uFF0C\u91CD\u65B0\u5C1D\u8BD5\u542F\u52A8<code>arthas</code>\uFF0C\u89C2\u5BDF\u662F\u5426\u8FD8\u4F1A\u51FA\u73B0\u5185\u5B58\u6EA2\u51FA\u9519\u8BEF\u3002</p></li></ol><p><strong>\u89E3\u91CA\uFF1A</strong> \u901A\u8FC7\u589E\u52A0Java\u5E94\u7528\u7684\u6700\u5927\u5806\u5185\u5B58\uFF0C\u6211\u4EEC\u4E3A<code>arthas</code>\u63D0\u4F9B\u4E86\u66F4\u591A\u7684\u53EF\u7528\u5185\u5B58\u7A7A\u95F4\uFF0C\u4ECE\u800C\u907F\u514D\u4E86\u5728\u5B83\u9644\u52A0\u5230\u76EE\u6807\u8FDB\u7A0B\u65F6\u56E0\u5185\u5B58\u4E0D\u8DB3\u800C\u5BFC\u81F4\u7684\u542F\u52A8\u5931\u8D25\u3002\u8BF7\u6CE8\u610F\uFF0C\u589E\u52A0\u5806\u5185\u5B58\u5927\u5C0F\u5E94\u57FA\u4E8E\u5B9E\u9645\u53EF\u7528\u7CFB\u7EDF\u8D44\u6E90\u5408\u7406\u8C03\u6574\uFF0C\u907F\u514D\u8FC7\u5EA6\u5206\u914D\u5BFC\u81F4\u5176\u4ED6\u7CFB\u7EDF\u670D\u52A1\u53D7\u5F71\u54CD\u3002</p><p>\u4EE5\u4E0A\u6B65\u9AA4\u5E94\u5F53\u80FD\u5E2E\u52A9\u60A8\u89E3\u51B3<code>arthas</code>\u542F\u52A8\u65F6\u9047\u5230\u7684\u5185\u5B58\u6EA2\u51FA\u95EE\u9898\u3002\u5982\u679C\u95EE\u9898\u4F9D\u65E7\u5B58\u5728\uFF0C\u53EF\u80FD\u9700\u8981\u8FDB\u4E00\u6B65\u8C03\u67E5\u5E94\u7528\u5185\u5B58\u6CC4\u6F0F\u6216\u5176\u4ED6\u8D44\u6E90\u6D88\u8017\u8FC7\u5927\u7684\u60C5\u51B5\u3002</p><p><strong>\u53C2\u8003\u8D44\u6599\uFF1A</strong></p><ul><li><a href="#prswg">arthas\u542F\u52A8\u65F6\u5185\u5B58\u6EA2\u51FA</a></li><li><a href="#C9l1i">Java \u5806\u5185\u5B58\u8BF4\u660E</a>\uFF08\u867D\u7136\u76F4\u63A5\u672A\u63D0\u4F9B\u89E3\u51B3\u6B65\u9AA4\uFF0C\u4F46\u6709\u52A9\u4E8E\u7406\u89E3Java\u5185\u5B58\u7ED3\u6784\uFF0C\u95F4\u63A5\u8F85\u52A9\u89E3\u51B3\u95EE\u9898\uFF09</li><li><a href="#CA3TJ">arthas \u4F60\u597D</a>\uFF08\u4E0E\u5F53\u524D\u95EE\u9898\u89E3\u51B3\u4E0D\u76F4\u63A5\u76F8\u5173\uFF0C\u6545\u4E0D\u6DF1\u5165\u8BA8\u8BBA\uFF09</li></ul>`,14),u=e("---------------"),f=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=e("\u4E13\u5BB6\u7ECF\u9A8C\uFF1Aarthas\u542F\u52A8\u65F6\u5185\u5B58\u6EA2\u51FA"),g=e("\u4E13\u5BB6\u7ECF\u9A8C\uFF1AJava \u5806\u5185\u5B58\u8BF4\u660E"),x=e("\u4E13\u5BB6\u7ECF\u9A8C\uFF1Aarthas \u4F60\u597D"),v=e("---------------"),J={id:"\u7B54\u7591\u670D\u52A1\u8BF4\u660E",tabindex:"-1"},b=t("a",{class:"header-anchor",href:"#\u7B54\u7591\u670D\u52A1\u8BF4\u660E","aria-hidden":"true"},"#",-1),O=e(),k=e("\u7B54\u7591\u670D\u52A1\u8BF4\u660E\uFF1A"),E=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"),y=e("\u4E13\u5BB6\u667A\u80FD\u7B54\u7591\u670D\u52A1"),F=e("\uFF0C\u5728"),R=e("\u9875\u9762\u7684\u53F3\u4E0B\u7684\u6D6E\u7A97\u201D\u4E13\u5BB6\u7B54\u7591\u201C"),V=e("\u3002\u60A8\u4E5F\u53EF\u4EE5\u8BBF\u95EE : "),X={href:"https://answer.opensource.alibaba.com/docs/intro",target:"_blank",rel:"noopener noreferrer"},q=e("\u5168\u5C40\u4E13\u5BB6\u7B54\u7591"),w=e(" \u3002 \u54A8\u8BE2\u5176\u4ED6\u4EA7\u54C1\u7684\u7684\u95EE\u9898"),B=t("h3",{id:"\u53CD\u9988",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#\u53CD\u9988","aria-hidden":"true"},"#"),e(" \u53CD\u9988")],-1),C=e("\u5982\u95EE\u7B54\u6709\u9519\u6F0F\uFF0C\u6B22\u8FCE\u70B9\uFF1A"),I={href:"https://ai.nacos.io/user/feedbackByEnhancerGradePOJOID?enhancerGradePOJOId=16081",target:"_blank",rel:"noopener noreferrer"},L=e("\u5DEE\u8BC4"),M=e("\u7ED9\u6211\u4EEC\u53CD\u9988\u3002");function N(A,S){const s=n("font"),r=n("RouterLink"),c=n("ExternalLinkIcon");return i(),h("div",null,[p,o(s,{color:"#949494"},{default:a(()=>[u]),_:1}),f,t("p",null,[o(r,{to:"/doc/expert/user-question-history14832.html"},{default:a(()=>[m]),_:1})]),t("p",null,[o(r,{to:"/doc/expert/user-question-history12716.html"},{default:a(()=>[g]),_:1})]),t("p",null,[o(r,{to:"/doc/expert/user-question-history11442.html"},{default:a(()=>[x]),_:1})]),o(s,{color:"#949494"},{default:a(()=>[v]),_:1}),t("h2",J,[b,O,o(s,{color:"#FF0000"},{default:a(()=>[k]),_:1})]),t("p",null,[E,o(s,{color:"#FF0000"},{default:a(()=>[y]),_:1}),F,o(s,{color:"#FF0000"},{default:a(()=>[R]),_:1}),V,t("a",X,[q,o(c)]),w]),B,t("p",null,[C,t("a",I,[L,o(c)]),M])])}const G=d(_,[["render",N],["__file","user-question-history14833.html.vue"]]);export{G as default};
|