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.
arthas/assets/user-question-history12716....

2 lines
8.2 KiB
JavaScript

import{_ as h,o as d,c as i,b as t,w as r,a,d as c,e,r as n}from"./app.977e81c1.js";const l={},_=c('<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\u5806\u5185\u5B58\u592A\u9AD8</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>\u4E3A\u4E86\u89E3\u51B3&quot;arthas arthas \u600E\u4E48\u67E5\u770B\u5806\u5185\u5B58\u592A\u9AD8&quot;\u7684\u95EE\u9898\uFF0C\u6211\u4EEC\u53EF\u4EE5\u6309\u7167\u4EE5\u4E0B\u6B65\u9AA4\u64CD\u4F5C\uFF0C\u57FA\u4E8E\u5DF2\u6709\u7684\u77E5\u8BC6\u5185\u5BB9\uFF1A</p><h3 id="\u5206\u6790\u539F\u56E0" tabindex="-1"><a class="header-anchor" href="#\u5206\u6790\u539F\u56E0" aria-hidden="true">#</a> \u5206\u6790\u539F\u56E0</h3><p>\u9996\u5148\uFF0C\u9700\u8981\u660E\u786E\u201C\u5806\u5185\u5B58\u592A\u9AD8\u201D\u901A\u5E38\u610F\u5473\u7740Java\u5E94\u7528\u7A0B\u5E8F\u53EF\u80FD\u5B58\u5728\u5185\u5B58\u6CC4\u6F0F\u6216\u8005\u5206\u914D\u7ED9JVM\u7684\u5806\u5185\u5B58\u4E0D\u8DB3\u3002\u4F7F\u7528Arthas\u53EF\u4EE5\u5E2E\u52A9\u6211\u4EEC\u8BCA\u65AD\u8FD9\u4E00\u95EE\u9898\u3002</p><h3 id="\u4F7F\u7528arthas\u8FDB\u884C\u6392\u67E5" tabindex="-1"><a class="header-anchor" href="#\u4F7F\u7528arthas\u8FDB\u884C\u6392\u67E5" aria-hidden="true">#</a> \u4F7F\u7528Arthas\u8FDB\u884C\u6392\u67E5</h3><h4 id="\u6B65\u9AA41-\u68C0\u67E5\u5F53\u524Djvm\u5185\u5B58\u72B6\u6001" tabindex="-1"><a class="header-anchor" href="#\u6B65\u9AA41-\u68C0\u67E5\u5F53\u524Djvm\u5185\u5B58\u72B6\u6001" aria-hidden="true">#</a> \u6B65\u9AA41\uFF1A\u68C0\u67E5\u5F53\u524DJVM\u5185\u5B58\u72B6\u6001</h4><ul><li><strong>\u547D\u4EE4</strong>\uFF1A<code>memory</code></li><li><strong>\u76EE\u7684</strong>\uFF1A\u6B64\u547D\u4EE4\u4F1A\u5C55\u793A\u5F53\u524DJVM\u5404\u5185\u5B58\u533A\u57DF\u7684\u4F7F\u7528\u60C5\u51B5\uFF0C\u5982\u5806\u5185\u5B58(heap)\u3001\u8001\u5E74\u4EE3(g1_old_gen)\u3001\u5E74\u8F7B\u4EE3\u7684\u5404\u4E2A\u90E8\u5206\u7B49\u3002\u901A\u8FC7\u89C2\u5BDF\u8FD9\u4E9B\u6570\u636E\uFF0C\u53EF\u4EE5\u521D\u6B65\u5224\u65AD\u662F\u54EA\u4E00\u90E8\u5206\u5185\u5B58\u5360\u7528\u8FC7\u9AD8\u3002</li></ul><h4 id="\u6B65\u9AA42-\u76D1\u63A7\u5185\u5B58\u53D8\u5316" tabindex="-1"><a class="header-anchor" href="#\u6B65\u9AA42-\u76D1\u63A7\u5185\u5B58\u53D8\u5316" aria-hidden="true">#</a> \u6B65\u9AA42\uFF1A\u76D1\u63A7\u5185\u5B58\u53D8\u5316</h4><ul><li><strong>\u64CD\u4F5C</strong>\uFF1A\u591A\u6B21\u6267\u884C<code>memory</code>\u547D\u4EE4\u5E76\u8BB0\u5F55\u7ED3\u679C\u3002</li><li><strong>\u76EE\u7684</strong>\uFF1A\u901A\u8FC7\u6BD4\u8F83\u4E0D\u540C\u65F6\u95F4\u70B9\u7684\u5185\u5B58\u4F7F\u7528\u60C5\u51B5\uFF0C\u8BC6\u522B\u662F\u5426\u6709\u7279\u5B9A\u533A\u57DF\u7684\u5185\u5B58\u6301\u7EED\u589E\u957F\uFF0C\u8FD9\u901A\u5E38\u662F\u5185\u5B58\u6CC4\u6F0F\u7684\u8FF9\u8C61\u3002</li></ul><h4 id="\u6B65\u9AA43-\u751F\u6210\u5806\u5185\u5B58\u5FEB\u7167" tabindex="-1"><a class="header-anchor" href="#\u6B65\u9AA43-\u751F\u6210\u5806\u5185\u5B58\u5FEB\u7167" aria-hidden="true">#</a> \u6B65\u9AA43\uFF1A\u751F\u6210\u5806\u5185\u5B58\u5FEB\u7167</h4><ul><li><strong>\u547D\u4EE4</strong>\uFF1A<code>heapdump /path/to/dumpfile.hprof</code></li><li><strong>\u76EE\u7684</strong>\uFF1A\u521B\u5EFA\u5806\u5185\u5B58\u7684\u5B8C\u6574\u5FEB\u7167\uFF0C\u4EE5\u4FBF\u79BB\u7EBF\u5206\u6790\u3002\u5982\u679C\u6000\u7591\u5B58\u5728\u5185\u5B58\u6CC4\u6F0F\uFF0C\u5E94\u95F4\u9694\u4E00\u6BB5\u65F6\u95F4\u91CD\u590D\u6267\u884C\u8BE5\u547D\u4EE4\uFF0C\u83B7\u53D6\u591A\u4E2A\u5FEB\u7167\u8FDB\u884C\u5BF9\u6BD4\u3002</li></ul><h4 id="\u6B65\u9AA44-\u5206\u6790\u5806\u5185\u5B58\u5FEB\u7167" tabindex="-1"><a class="header-anchor" href="#\u6B65\u9AA44-\u5206\u6790\u5806\u5185\u5B58\u5FEB\u7167" aria-hidden="true">#</a> \u6B65\u9AA44\uFF1A\u5206\u6790\u5806\u5185\u5B58\u5FEB\u7167</h4><ul><li><strong>\u5DE5