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.
3 lines
7.3 KiB
JavaScript
3 lines
7.3 KiB
JavaScript
import{_ as h,o as i,c,a as t,b as a,w as o,d as l,e,r as d}from"./app.5024572d.js";const _={},u=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 \u5206\u6790thread\u7EBF\u7A0B\u5361\u4F4F</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\u5206\u6790\u7EBF\u7A0B\uFF08thread\uFF09\u5361\u4F4F\u7684\u95EE\u9898\uFF0C\u6211\u4EEC\u53EF\u4EE5\u6309\u7167\u4EE5\u4E0B\u6B65\u9AA4\u64CD\u4F5C\uFF1A</p><h3 id="_1-\u8BC6\u522B\u95EE\u9898\u539F\u56E0" tabindex="-1"><a class="header-anchor" href="#_1-\u8BC6\u522B\u95EE\u9898\u539F\u56E0" aria-hidden="true">#</a> 1. \u8BC6\u522B\u95EE\u9898\u539F\u56E0</h3><p>\u6839\u636E\u63D0\u4F9B\u7684\u77E5\u8BC6\uFF0C\u5F53\u5E94\u7528\u53D1\u751F\u5361\u987F\u65F6\uFF0C\u5F80\u5F80\u662F\u7531\u4E8E\u67D0\u4E2A\u7EBF\u7A0B\u6301\u6709\u9501\uFF0C\u5BFC\u81F4\u5176\u4ED6\u7EBF\u7A0B\u7B49\u5F85\u8BE5\u9501\u800C\u65E0\u6CD5\u7EE7\u7EED\u6267\u884C\u3002Arthas\u63D0\u4F9B\u4E86<code>thread -b</code>\u547D\u4EE4\u6765\u5E2E\u52A9\u5B9A\u4F4D\u8FD9\u4E2A\u9020\u6210\u963B\u585E\u7684\u7EBF\u7A0B\u3002</p><h3 id="_2-\u4F7F\u7528arthas\u67E5\u627E\u963B\u585E\u7EBF\u7A0B" tabindex="-1"><a class="header-anchor" href="#_2-\u4F7F\u7528arthas\u67E5\u627E\u963B\u585E\u7EBF\u7A0B" aria-hidden="true">#</a> 2. \u4F7F\u7528Arthas\u67E5\u627E\u963B\u585E\u7EBF\u7A0B</h3><p>\u6267\u884C\u547D\u4EE4\uFF1A</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>thread <span class="token parameter variable">-b</span>
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>\u6B64\u547D\u4EE4\u4F1A\u5217\u51FA\u5F53\u524D\u963B\u585E\u5176\u4ED6\u7EBF\u7A0B\u7684\u7EBF\u7A0B\u4FE1\u606F\uFF0C\u5305\u62EC\u7EBF\u7A0BID\u3001\u72B6\u6001\u4EE5\u53CA\u5B83\u6301\u6709\u7684\u9501\u3002\u4F8B\u5982\uFF0C\u8F93\u51FA\u53EF\u80FD\u4F1A\u663E\u793A\u67D0\u4E2A\u7EBF\u7A0B\u5904\u4E8ETIMED_WAITING\u72B6\u6001\uFF0C\u5E76\u6307\u51FA\u8BE5\u7EBF\u7A0B\u6301\u6709\u4E00\u4E2A\u9501\uFF0C\u540C\u65F6\u963B\u585E\u4E86\u5176\u4ED6\u7EBF\u7A0B\u3002</p><h3 id="_3-\u5206\u6790\u8F93\u51FA" tabindex="-1"><a class="header-anchor" href="#_3-\u5206\u6790\u8F93\u51FA" aria-hidden="true">#</a> 3. \u5206\u6790\u8F93\u51FA</h3><ul><li><strong>\u5173\u6CE8\u9501\u5B9A\u5BF9\u8C61</strong>\uFF1A\u6CE8\u610F\u8F93\u51FA\u4E2D\u88AB<code>- locked</code>\u6807\u8BB0\u7684\u884C\uFF0C\u8FD9\u8868\u793A\u8BE5\u7EBF\u7A0B\u6301\u6709\u7684\u9501\u3002\u5982\u679C\u8BE5\u9501\u5BFC\u81F4\u4E86\u5176\u4ED6\u7EBF\u7A0B\u7684\u963B\u585E\uFF0C\u8FD9\u91CC\u4F1A\u6709\u660E\u786E\u63D0\u793A\u3002</li><li><strong>\u67E5\u770B\u8C03\u7528\u6808</strong>\uFF1A\u8C03\u7528\u6808\u4FE1\u606F\u53EF\u4EE5\u5E2E\u52A9\u7406\u89E3\u8BE5\u7EBF\u7A0B\u5728\u963B\u585E\u524D\u6B63\u5728\u6267\u884C\u7684\u64CD\u4F5C\uFF0C\u8FD9\u5BF9\u4E8E\u8BCA\u65AD\u95EE\u9898\u81F3\u5173\u91CD\u8981\u3002</li></ul><h3 id="\u6CE8\u610F\u4E8B\u9879" tabindex="-1"><a class="header-anchor" href="#\u6CE8\u610F\u4E8B\u9879" aria-hidden="true">#</a> \u6CE8\u610F\u4E8B\u9879</h3><ul><li>\u76EE\u524D<code>thread -b</code>\u4EC5\u652F\u6301<code>synchronized</code>\u5173\u952E\u5B57\u5BFC\u81F4\u7684\u7EBF\u7A0B\u963B\u585E\u5206\u6790\uFF0C\u5BF9\u4E8E\u4F7F\u7528<code>java.util.concurrent.Lock</code>\u7684\u60C5\u51B5\u6682\u4E0D\u652F\u6301\u3002</li><li>\u5982\u679C\u9700\u8981\u5BF9\u6BCF\u4E2A\u7EBF\u7A0B\u5206\u522B\u8FDB\u884C\u6027\u80FD\u5206\u6790\uFF08profiling\uFF09\uFF0C\u53EF\u4EE5\u4F7F\u7528<code>profiler start -t</code>\u547D\u4EE4\uFF0C\u4F46\u8BF7\u6CE8\u610F\u8FD9\u4E00\u6B65\u9AA4\u4E3B\u8981\u7528\u4E8E\u6027\u80FD\u76D1\u63A7\uFF0C\u800C\u975E\u76F4\u63A5\u89E3\u51B3\u7EBF\u7A0B\u963B\u585E\u95EE\u9898\u3002</li></ul><h3 id="\u94FE\u63A5\u4E0E\u8D44\u6E90" tabindex="-1"><a class="header-anchor" href="#\u94FE\u63A5\u4E0E\u8D44\u6E90" aria-hidden="true">#</a> \u94FE\u63A5\u4E0E\u8D44\u6E90</h3>`,16),p={href:"https://arthas.aliyun.com/doc/arthas-tutorials.html?language=cn",target:"_blank",rel:"noopener noreferrer"},f=e("Arthas\u5B98\u65B9\u6559\u7A0B"),b=e("\u63D0\u4F9B\u4E86\u66F4\u5168\u9762\u7684\u4F7F\u7528\u6307\u5357\u548C\u9AD8\u7EA7\u529F\u80FD\u4ECB\u7ECD\u3002"),m=t("p",null,[e("\u7EFC\u4E0A\u6240\u8FF0\uFF0C\u901A\u8FC7Arthas\u7684"),t("code",null,"thread -b"),e("\u547D\u4EE4\u80FD\u6709\u6548\u8BC6\u522B\u5E76\u5206\u6790\u5BFC\u81F4\u5E94\u7528\u5361\u4F4F\u7684\u7EBF\u7A0B\u963B\u585E\u95EE\u9898\uFF0C\u4E3A\u89E3\u51B3\u95EE\u9898\u63D0\u4F9B\u5173\u952E\u4FE1\u606F\u3002\u8FDB\u4E00\u6B65\u7684\u89E3\u51B3\u65B9\u6848\u5219\u9700\u57FA\u4E8E\u5177\u4F53\u5206\u6790\u7ED3\u679C\u8FDB\u884C\uFF0C\u6BD4\u5982\u4F18\u5316\u9501\u5B9A\u7B56\u7565\u6216\u4EE3\u7801\u903B\u8F91\u7B49\u3002")],-1),x=e("---------------"),g=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),k=e("thread"),v=e("\u4E13\u5BB6\u7ECF\u9A8C\uFF1AArthas \u5B98\u65B9\u6559\u7A0B"),I=e("profiler"),A=e("---------------"),y={id:"\u7B54\u7591\u670D\u52A1\u8BF4\u660E",tabindex:"-1"},F=t("a",{class:"header-anchor",href:"#\u7B54\u7591\u670D\u52A1\u8BF4\u660E","aria-hidden":"true"},"#",-1),E=e(),L=e("\u7B54\u7591\u670D\u52A1\u8BF4\u660E\uFF1A"),N=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"),B=e("\u4E13\u5BB6\u667A\u80FD\u7B54\u7591\u670D\u52A1"),O=e("\uFF0C\u5728"),V=e("\u9875\u9762\u7684\u53F3\u4E0B\u7684\u6D6E\u7A97\u201D\u4E13\u5BB6\u7B54\u7591\u201C"),w=e("\u3002\u60A8\u4E5F\u53EF\u4EE5\u8BBF\u95EE : "),D={href:"https://answer.opensource.alibaba.com/docs/intro",target:"_blank",rel:"noopener noreferrer"},G=e("\u5168\u5C40\u4E13\u5BB6\u7B54\u7591"),T=e(" \u3002 \u54A8\u8BE2\u5176\u4ED6\u4EA7\u54C1\u7684\u7684\u95EE\u9898"),q=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"),J={href:"https://ai.nacos.io/user/feedbackByEnhancerGradePOJOID?enhancerGradePOJOId=16044",target:"_blank",rel:"noopener noreferrer"},P=e("\u5DEE\u8BC4"),R=e("\u7ED9\u6211\u4EEC\u53CD\u9988\u3002");function j(z,H){const s=d("ExternalLinkIcon"),r=d("font"),n=d("RouterLink");return i(),c("div",null,[u,t("ul",null,[t("li",null,[t("a",p,[f,a(s)]),b])]),m,a(r,{color:"#949494"},{default:o(()=>[x]),_:1}),g,t("p",null,[a(n,{to:"/doc/thread.html"},{default:o(()=>[k]),_:1})]),t("p",null,[a(n,{to:"/doc/expert/user-question-history11466.html"},{default:o(()=>[v]),_:1})]),t("p",null,[a(n,{to:"/doc/profiler.html"},{default:o(()=>[I]),_:1})]),a(r,{color:"#949494"},{default:o(()=>[A]),_:1}),t("h2",y,[F,E,a(r,{color:"#FF0000"},{default:o(()=>[L]),_:1})]),t("p",null,[N,a(r,{color:"#FF0000"},{default:o(()=>[B]),_:1}),O,a(r,{color:"#FF0000"},{default:o(()=>[V]),_:1}),w,t("a",D,[G,a(s)]),T]),q,t("p",null,[C,t("a",J,[P,a(s)]),R])])}const Q=h(_,[["render",j],["__file","user-question-history11450.html.vue"]]);export{Q as default};
|