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/mbean.html.9062fe0b.js

10 lines
5.1 KiB
JavaScript

import{_ as r,o as i,c as l,a as e,b as n,e as a,d as s,r as d}from"./app.5024572d.js";const o={},c=e("h1",{id:"mbean",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#mbean","aria-hidden":"true"},"#"),a(" mbean")],-1),m={href:"https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=command-mbean",target:"_blank",rel:"noopener noreferrer"},p=e("code",null,"mbean",-1),h=a(" online tutorial"),u=s(`<div class="custom-container tip"><p class="custom-container-title">TIP</p><p>show Mbean information</p></div><p>This command can show or monitor Mbean attribute information.</p><h2 id="parameters" tabindex="-1"><a class="header-anchor" href="#parameters" aria-hidden="true">#</a> Parameters</h2><table><thead><tr><th style="text-align:right;">Name</th><th style="text-align:left;">Specification</th></tr></thead><tbody><tr><td style="text-align:right;"><em>name-pattern</em></td><td style="text-align:left;">pattern for the Mbean name</td></tr><tr><td style="text-align:right;"><em>attribute-pattern</em></td><td style="text-align:left;">pattern for the attribute name</td></tr><tr><td style="text-align:right;">[m]</td><td style="text-align:left;">show meta information</td></tr><tr><td style="text-align:right;">[i:]</td><td style="text-align:left;">specify the interval to refresh attribute value (ms)</td></tr><tr><td style="text-align:right;">[n:]</td><td style="text-align:left;">execution times</td></tr><tr><td style="text-align:right;">[E]</td><td style="text-align:left;">turn on regex matching while the default mode is wildcard matching. Only effect on the attribute name</td></tr></tbody></table><h2 id="usage" tabindex="-1"><a class="header-anchor" href="#usage" aria-hidden="true">#</a> Usage</h2><p>show all Mbean names:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>show meta data of Mbean:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean <span class="token parameter variable">-m</span> java.lang:type<span class="token operator">=</span>Threading
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>show attributes of Mbean:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean java.lang:type<span class="token operator">=</span>Threading
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>Mbean name support wildcard matcher:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean java.lang:type<span class="token operator">=</span>Th*
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div>`,13),b={class:"custom-container warning"},g=e("p",{class:"custom-container-title"},"WARNING",-1),v=a("Notes\uFF1AObjectName matching rules differ from normal wildcards, Reference resources\uFF1A"),f={href:"https://docs.oracle.com/javase/8/docs/api/javax/management/ObjectName.html?is-external=true",target:"_blank",rel:"noopener noreferrer"},_=a("javax.management.ObjectName"),x=s(`<p>Wildcards match specific attributes:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean java.lang:type<span class="token operator">=</span>Threading *Count
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>Switch to regular matching using the <code>-E</code> command:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean <span class="token parameter variable">-E</span> java.lang:type<span class="token operator">=</span>Threading PeakThreadCount<span class="token operator">|</span>ThreadCount<span class="token operator">|</span>DaemonThreadCount
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>Real-time monitoring using <code>-i</code> command:</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean <span class="token parameter variable">-i</span> <span class="token number">1000</span> java.lang:type<span class="token operator">=</span>Threading *Count
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>Real-time monitoring using <code>-i</code> with number of times the command will be executed using <code>-n</code> command (100 times by default):</p><div class="language-bash ext-sh line-numbers-mode"><pre class="language-bash"><code>mbean <span class="token parameter variable">-i</span> <span class="token number">1000</span> <span class="token parameter variable">-n</span> <span class="token number">50</span> java.lang:type<span class="token operator">=</span>Threading *Count
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div>`,8);function y(k,w){const t=d("ExternalLinkIcon");return i(),l("div",null,[c,e("p",null,[e("a",m,[p,h,n(t)])]),u,e("div",b,[g,e("p",null,[v,e("a",f,[_,n(t)])])]),x])}const T=r(o,[["render",y],["__file","mbean.html.vue"]]);export{T as default};