import{_ as a,o as c,c as h,a as t,b as o,w as n,e,d,r as l}from"./app.391b0e4e.js";const r={},_=t("h1",{id:"all-commands",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#all-commands","aria-hidden":"true"},"#"),e(" All Commands")],-1),u=t("h2",{id:"jvm-related",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#jvm-related","aria-hidden":"true"},"#"),e(" jvm - related")],-1),m=e("dashboard"),f=e(" - dashboard for the system's real-time data"),p=e("getstatic"),g=e(" - examine class's static properties"),b=e("heapdump"),y=e(" - dump java heap in hprof binary format, like "),v=t("code",null,"jmap",-1),w=e("jvm"),j=e(" - show JVM information"),k=e("logger"),x=e(" - print the logger information, update the logger level"),A=e("mbean"),V=e(" - show Mbean information"),C=e("ognl"),J=e(" - execute ognl expression"),M=e("perfcounter"),N=e(" - show JVM Perf Counter information"),B=e("sysenv"),I=e(" \u2014 view system environment variables"),E=e("sysprop"),L=e(" - view/modify system properties"),R=e("thread"),S=e(" - show java thread information"),q=e("vmoption"),G=e(" - view/modify the vm diagnostic options."),P=e("vmtool"),T=e(" - jvm tool, getInstances in jvm, forceGc"),z=t("h2",{id:"class-classloader-related",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#class-classloader-related","aria-hidden":"true"},"#"),e(" class/classloader - related")],-1),W=e("classloader"),D=e(" - check the inheritance structure, urls, class loading info for the specified class; using classloader to get the url of the resource e.g. "),F=t("code",null,"java/lang/String.class",-1),H=e("dump"),K=e(" - dump the loaded classes in byte code to the specified location"),O=e("jad"),Q=e(" - decompile the specified loaded classes"),U=e("mc"),X=e(" - Memory compiler, compiles "),Y=t("code",null,".java",-1),Z=e(" files into "),$=t("code",null,".class",-1),ee=e(" files in memory"),te=e("redefine"),oe=e(" - load external "),se=t("code",null,"*.class",-1),ne=e(" files and re-define it into JVM"),ie=e("retransform"),le=e(" - load external "),de=t("code",null,"*.class",-1),ae=e(" files and retransform it into JVM"),ce=e("sc"),he=e(" - check the info for the classes loaded by JVM"),re=e("sm"),_e=e(" - check methods info for the loaded classes"),ue=t("h2",{id:"monitor-watch-trace-related",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#monitor-watch-trace-related","aria-hidden":"true"},"#"),e(" monitor/watch/trace - related")],-1),me={class:"custom-container warning"},fe=t("p",{class:"custom-container-title"},"WARNING",-1),pe=t("strong",null,"Attention",-1),ge=e(": commands here are taking advantage of byte-code-injection, which means we are injecting some "),be={href:"https://en.wikipedia.org/wiki/Aspect-oriented_programming",target:"_blank",rel:"noopener noreferrer"},ye=e("aspects"),ve=e(" into the current classes for monitoring and statistics purpose. Therefore, when using it for online troubleshooting in your production environment, you'd better "),we=t("strong",null,"explicitly specify",-1),je=e(" classes/methods/criteria, and remember to remove the injected code by "),ke=t("code",null,"stop",-1),xe=e(" or "),Ae=t("code",null,"reset",-1),Ve=e("."),Ce=e("monitor"),Je=e(" - monitor method execution statistics"),Me=e("stack"),Ne=e(" - display the stack trace for the specified class and method"),Be=e("trace"),Ie=e(" - trace the execution time of specified method invocation"),Ee=e("tt"),Le=e(" - time tunnel, record the arguments and returned value for the methods and replay"),Re=e("watch"),Se=e(" - display the input/output parameter, return object, and thrown exception of specified method invocation"),qe=t("h2",{id:"authentication",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#authentication","aria-hidden":"true"},"#"),e(" authentication")],-1),Ge=e("auth"),Pe=e(" - authentication"),Te=t("h2",{id:"options",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#options","aria-hidden":"true"},"#"),e(" options")],-1),ze=e("options"),We=e(" - check/set Arthas global options"),De=t("h2",{id:"profiler-flame-graph",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#profiler-flame-graph","aria-hidden":"true"},"#"),e(" profiler/flame graph")],-1),Fe=e("profiler"),He=e(" - use "),Ke={href:"https://github.com/jvm-profiling-tools/async-profiler",target:"_blank",rel:"noopener noreferrer"},Oe=e("async-profiler"),Qe=e(" to generate flame graph"),Ue=d('

pipe

Arthas provides pipe to process the result returned from commands further, e.g. sm java.lang.String * | grep 'index'. Commands supported in pipe:

async jobs

',4),Xe=e("async"),Ye=e(" can be handy when a problem is hardly to reproduce in the production environment, e.g. one "),Ze=t("code",null,"watch",-1),$e=e(" condition may happen only once in one single day."),et=d('

Basic Arthas Commands

',2),tt=e("base64"),ot=e(" - Encode and decode using Base64 representation."),st=e("cat"),nt=e(" - Concatenate and print files"),it=e("cls"),lt=e(" - clear the screen"),dt=e("echo"),at=e(" - write arguments to the standard output"),ct=e("grep"),ht=e(" - Pattern searcher"),rt=e("help"),_t=e(" - display Arthas help"),ut=e("history"),mt=e(" - view command history"),ft=e("keymap"),pt=e(" - keymap for Arthas keyboard shortcut"),gt=e("pwd"),bt=e(" - Return working directory name"),yt=e("quit/exit"),vt=e(" - exit the current Arthas session, without effecting other sessions"),wt=e("reset"),jt=e(" - reset all the enhanced classes. All enhanced classes will also be reset when Arthas server is closed by "),kt=t("code",null,"stop",-1),xt=e("session"),At=e(" - display current session information"),Vt=e("stop"),Ct=e(" - terminate the Arthas server, all Arthas sessions will be destroyed"),Jt=e("tee"),Mt=e(" - Copies standard input to standard output, making a copy in zero or more files."),Nt=e("version"),Bt=e(" - print the version for the Arthas attached to the current Java process");function It(Et,Lt){const s=l("RouterLink"),i=l("ExternalLinkIcon");return c(),h("div",null,[_,u,t("ul",null,[t("li",null,[o(s,{to:"/en/doc/dashboard.html"},{default:n(()=>[m]),_:1}),f]),t("li",null,[o(s,{to:"/en/doc/getstatic.html"},{default:n(()=>[p]),_:1}),g]),t("li",null,[o(s,{to:"/en/doc/heapdump.html"},{default:n(()=>[b]),_:1}),y,v]),t("li",null,[o(s,{to:"/en/doc/jvm.html"},{default:n(()=>[w]),_:1}),j]),t("li",null,[o(s,{to:"/en/doc/logger.html"},{default:n(()=>[k]),_:1}),x]),t("li",null,[o(s,{to:"/en/doc/mbean.html"},{default:n(()=>[A]),_:1}),V]),t("li",null,[o(s,{to:"/en/doc/ognl.html"},{default:n(()=>[C]),_:1}),J]),t("li",null,[o(s,{to:"/en/doc/perfcounter.html"},{default:n(()=>[M]),_:1}),N]),t("li",null,[o(s,{to:"/en/doc/sysenv.html"},{default:n(()=>[B]),_:1}),I]),t("li",null,[o(s,{to:"/en/doc/sysprop.html"},{default:n(()=>[E]),_:1}),L]),t("li",null,[o(s,{to:"/en/doc/thread.html"},{default:n(()=>[R]),_:1}),S]),t("li",null,[o(s,{to:"/en/doc/vmoption.html"},{default:n(()=>[q]),_:1}),G]),t("li",null,[o(s,{to:"/en/doc/vmtool.html"},{default:n(()=>[P]),_:1}),T])]),z,t("ul",null,[t("li",null,[o(s,{to:"/en/doc/classloader.html"},{default:n(()=>[W]),_:1}),D,F]),t("li",null,[o(s,{to:"/en/doc/dump.html"},{default:n(()=>[H]),_:1}),K]),t("li",null,[o(s,{to:"/en/doc/jad.html"},{default:n(()=>[O]),_:1}),Q]),t("li",null,[o(s,{to:"/en/doc/mc.html"},{default:n(()=>[U]),_:1}),X,Y,Z,$,ee]),t("li",null,[o(s,{to:"/en/doc/redefine.html"},{default:n(()=>[te]),_:1}),oe,se,ne]),t("li",null,[o(s,{to:"/en/doc/retransform.html"},{default:n(()=>[ie]),_:1}),le,de,ae]),t("li",null,[o(s,{to:"/en/doc/sc.html"},{default:n(()=>[ce]),_:1}),he]),t("li",null,[o(s,{to:"/en/doc/sm.html"},{default:n(()=>[re]),_:1}),_e])]),ue,t("div",me,[fe,t("p",null,[pe,ge,t("a",be,[ye,o(i)]),ve,we,je,ke,xe,Ae,Ve])]),t("ul",null,[t("li",null,[o(s,{to:"/en/doc/monitor.html"},{default:n(()=>[Ce]),_:1}),Je]),t("li",null,[o(s,{to:"/en/doc/stack.html"},{default:n(()=>[Me]),_:1}),Ne]),t("li",null,[o(s,{to:"/en/doc/trace.html"},{default:n(()=>[Be]),_:1}),Ie]),t("li",null,[o(s,{to:"/en/doc/tt.html"},{default:n(()=>[Ee]),_:1}),Le]),t("li",null,[o(s,{to:"/en/doc/watch.html"},{default:n(()=>[Re]),_:1}),Se])]),qe,t("ul",null,[t("li",null,[o(s,{to:"/en/doc/auth.html"},{default:n(()=>[Ge]),_:1}),Pe])]),Te,t("ul",null,[t("li",null,[o(s,{to:"/en/doc/options.html"},{default:n(()=>[ze]),_:1}),We])]),De,t("ul",null,[t("li",null,[o(s,{to:"/en/doc/profiler.html"},{default:n(()=>[Fe]),_:1}),He,t("a",Ke,[Oe,o(i)]),Qe])]),Ue,t("p",null,[o(s,{to:"/en/doc/async.html"},{default:n(()=>[Xe]),_:1}),Ye,Ze,$e]),et,t("ul",null,[t("li",null,[o(s,{to:"/en/doc/base64.html"},{default:n(()=>[tt]),_:1}),ot]),t("li",null,[o(s,{to:"/en/doc/cat.html"},{default:n(()=>[st]),_:1}),nt]),t("li",null,[o(s,{to:"/en/doc/cls.html"},{default:n(()=>[it]),_:1}),lt]),t("li",null,[o(s,{to:"/en/doc/echo.html"},{default:n(()=>[dt]),_:1}),at]),t("li",null,[o(s,{to:"/en/doc/grep.html"},{default:n(()=>[ct]),_:1}),ht]),t("li",null,[o(s,{to:"/en/doc/help.html"},{default:n(()=>[rt]),_:1}),_t]),t("li",null,[o(s,{to:"/en/doc/history.html"},{default:n(()=>[ut]),_:1}),mt]),t("li",null,[o(s,{to:"/en/doc/keymap.html"},{default:n(()=>[ft]),_:1}),pt]),t("li",null,[o(s,{to:"/en/doc/pwd.html"},{default:n(()=>[gt]),_:1}),bt]),t("li",null,[o(s,{to:"/en/doc/quit.html"},{default:n(()=>[yt]),_:1}),vt]),t("li",null,[o(s,{to:"/en/doc/reset.html"},{default:n(()=>[wt]),_:1}),jt,kt]),t("li",null,[o(s,{to:"/en/doc/session.html"},{default:n(()=>[xt]),_:1}),At]),t("li",null,[o(s,{to:"/en/doc/stop.html"},{default:n(()=>[Vt]),_:1}),Ct]),t("li",null,[o(s,{to:"/en/doc/tee.html"},{default:n(()=>[Jt]),_:1}),Mt]),t("li",null,[o(s,{to:"/en/doc/version.html"},{default:n(()=>[Nt]),_:1}),Bt])])])}var St=a(r,[["render",It],["__file","commands.html.vue"]]);export{St as default};