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.9f2e31de.js

9 lines
4.4 KiB
JavaScript

import{_ as r,o as i,c as d,a as e,b as n,e as a,d as s,r as l}from"./app.391b0e4e.js";const o={},c=e("h1",{id:"mbean",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#mbean","aria-hidden":"true"},"#"),a(" mbean")],-1),h={href:"https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=command-mbean",target:"_blank",rel:"noopener noreferrer"},m=e("code",null,"mbean",-1),p=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><h3 id="parameters" tabindex="-1"><a class="header-anchor" href="#parameters" aria-hidden="true">#</a> Parameters</h3><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><h3 id="usage" tabindex="-1"><a class="header-anchor" href="#usage" aria-hidden="true">#</a> Usage</h3><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 -m 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),g={class:"custom-container warning"},b=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 -E 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 -i <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>`,6);function y(k,j){const t=l("ExternalLinkIcon");return i(),d("div",null,[c,e("p",null,[e("a",h,[m,p,n(t)])]),u,e("div",g,[b,e("p",null,[v,e("a",f,[_,n(t)])])]),x])}var T=r(o,[["render",y],["__file","mbean.html.vue"]]);export{T as default};