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.
2 lines
6.5 KiB
JavaScript
2 lines
6.5 KiB
JavaScript
8 months ago
|
import{_ as d,o as c,c as h,b as t,w as r,a as o,d as _,e,r as n}from"./app.977e81c1.js";const i={},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\u6392\u67E5\u5185\u5B58\u6CC4\u6F0F</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>\u4F7F\u7528Arthas\u6392\u67E5\u5185\u5B58\u6CC4\u6F0F\u53EF\u4EE5\u9075\u5FAA\u4EE5\u4E0B\u6B65\u9AA4\uFF1A</p><ol><li><p><strong>\u68C0\u67E5JVM\u5185\u5B58\u72B6\u6001</strong><br> \u9996\u5148\uFF0C\u4F7F\u7528Arthas\u7684<code>memory</code>\u547D\u4EE4\u6765\u67E5\u770B\u5F53\u524DJava\u865A\u62DF\u673A\u7684\u5185\u5B58\u4F7F\u7528\u60C5\u51B5\u3002\u8FD9\u5C06\u5E2E\u52A9\u4F60\u4E86\u89E3\u5404\u4E2A\u5185\u5B58\u533A\u57DF\u7684\u4F7F\u7528\u7387\uFF0C\u5982\u5806\u3001\u975E\u5806\u5185\u5B58\u4EE5\u53CA\u7279\u5B9A\u7684\u5783\u573E\u6536\u96C6\u5668\u76F8\u5173\u533A\u57DF\u7684\u72B6\u6001\u3002\u4F8B\u5982\uFF0C\u6267\u884C<code>memory</code>\u540E\uFF0C\u4F60\u4F1A\u770B\u5230\u7C7B\u4F3C\u4E0A\u9762\u5C55\u793A\u7684\u8F93\u51FA\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u89C2\u5BDF\u662F\u5426\u6709\u67D0\u4E2A\u533A\u57DF\u7684\u5185\u5B58\u4F7F\u7528\u5F02\u5E38\u589E\u9AD8\uFF0C\u5C24\u5176\u662F<code>heap</code>\u6216\u67D0\u4E9B\u7279\u5B9A\u533A\u57DF\u5982<code>g1_old_gen</code>\u7684\u6301\u7EED\u589E\u957F\uFF0C\u8FD9\u53EF\u80FD\u662F\u5185\u5B58\u6CC4\u6F0F\u7684\u8FF9\u8C61\u3002</p></li><li><p><strong>\u5206\u6790\u5185\u5B58\u6CC4\u6F0F\u8D8B\u52BF</strong><br> \u591A\u6B21\u8FD0\u884C<code>memory</code>\u547D\u4EE4\u5E76\u89C2\u5BDF\u53D8\u5316\uFF0C\u7279\u522B\u662F\u6CE8\u610F\u90A3\u4E9B\u6301\u7EED\u589E\u957F\u800C\u6CA1\u6709\u51CF\u5C11\u7684\u5185\u5B58\u533A\u57DF\u3002\u8FD9\u4E9B\u533A\u57DF\u5F88\u53EF\u80FD\u662F\u5185\u5B58\u6CC4\u6F0F\u7684\u6E90\u5934\u3002</p></li><li><p><strong>\u751F\u6210\u5806\u8F6C\u50A8\u6587\u4EF6</strong><br> \u4F7F\u7528<code>heapdump</code>\u547D\u4EE4\u751F\u6210\u5806\u7684\u5168\u91CF\u5185\u5B58\u4FE1\u606F\u6587\u4EF6\uFF0C\u5982<code>heapdump arthas-output/dump.hprof</code>\u3002\u8FD9\u4E00\u6B65\u9AA4\u5BF9\u4E8E\u7CBE\u786E\u5730\u5B9A\u4F4D\u5185\u5B58\u6CC4\u6F0F\u5BF9\u8C61\u81F3\u5173\u91CD\u8981\u3002\u591A\u6B21\u6267\u884C\u6B64\u64CD\u4F5C\u5E76\u5728\u4E0D\u540C\u65F6\u95F4\u70B9\u751F\u6210\u5806\u8F6C\u50A8\u6587\u4EF6\uFF0C\u4EE5\u4FBF\u540E\u7EED\u5BF9\u6BD4\u5206\u6790\u3002</p></li><li><p><strong>\u5206\u6790\u5806\u8F6C\u50A8\u6587\u4EF6</strong><br> \u5229\u7528\u8BF8\u5982Eclipse Memory Analyzer (MAT)\u7B49\u5DE5\u5177\u5206\u6790\u4E4B\u524D\u751F\u6210\u7684<code>.hprof</code>\u6587\u4EF6\u3002\u5728MAT\u4E2D\uFF0C\u4F60\u53EF\u4EE5\u67E5\u770B\u5BF9\u8C61\u7684\u6570\u91CF\u3001\u5B83\u4EEC\u7684\u5F15\u7528\u5173\u7CFB\u4EE5\u53CA\u5360\u7528\u7684\u5185\u5B58\u5927\u5C0F\uFF0C\u901A\u8FC7\u5BF9\u6BD4\u4E0D\u540C\u65F6\u95F4\u70B9\u7684\u5806\u8F6C\u50A8\u6587\u4EF6\uFF0C\u5BFB\u627E\u90A3\u4E9B\u6570\u91CF\u663E\u8457\u589E\u52A0\u6216\u5185\u5B58\u5360\u7528\u6301\u7EED\u589E\u957F\u7684\u5BF9\u8C61\uFF0C\u8FD9\u4E9B\u5F88\u53EF\u80FD\u662F\u5BFC\u81F4\u5185\u5B58\u6CC4\u6F0F\u7684\u6839\u6E90\u3002</p></li></ol><p><strong>\u89E3\u91CA</strong>\uFF1A<br> \u901A\u8FC7\u4EE5\u4E0A\u6B65\u9AA4\uFF0C\u6211\u4EEC\u9996\u5148\u5229\u7528Arthas\u7684\u5B9E\u65F6\u76D1\u63A7\u80FD\u529B\u5FEB\u901F\u8BC6\u522B\u5185\u5B58\u4F7F\u7528\u7684\u5F02\u5E38\u60C5\u51B5\uFF0C\u63A5\u7740\u901A\u8FC7\u5806\u8F6C\u50A8\u548C\u4E13\u4E1A\u5206\u6790\u5DE5\u5177\u6DF1\u5165\u6316\u6398\uFF0C\u5B9A\u4F4D\u5230\u5177\u4F53\u7684\u6CC4\u6F0F\u5BF9\u8C61\u3002\u8FD9\u79CD\u65B9\u5F0F\u7ED3\u5408\u4E86\u52A8\u6001\u76D1\u6D4B\u4E0E\u9759\u6001\u5206\u6790\uFF0C\u662F\u6392\u67E5\u5185\u5B58\u6CC4\u6F0F\u7684\u6709\u6548\u624B\u6BB5\u3002\u5982\u679C\u5728\u6267\u884C\u8FC7\u7A0B\u4E2D\u9047\u5230\u95EE\u9898\uFF0C\
|