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/commands.html.10091c22.js

2 lines
11 KiB
JavaScript

import{_ as d,o as c,c as a,a as e,b as o,w as n,e as t,d as h,r as i}from"./app.977e81c1.js";const r={},_=e("h1",{id:"all-commands",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#all-commands","aria-hidden":"true"},"#"),t(" All Commands")],-1),u=e("h2",{id:"jvm-related",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#jvm-related","aria-hidden":"true"},"#"),t(" jvm - related")],-1),m=t("dashboard"),f=t(" - dashboard for the system's real-time data"),p=t("getstatic"),g=t(" - examine class's static properties"),b=t("heapdump"),y=t(" - dump java heap in hprof binary format, like "),v=e("code",null,"jmap",-1),w=t("jvm"),j=t(" - show JVM information"),k=t("logger"),x=t(" - print the logger information, update the logger level"),A=t("mbean"),V=t(" - show Mbean information"),C=t("memory"),J=t(" - show JVM memory information"),M=t("ognl"),N=t(" - execute ognl expression"),B=t("perfcounter"),I=t(" - show JVM Perf Counter information"),E=t("sysenv"),L=t(" \u2014 view system environment variables"),R=t("sysprop"),S=t(" - view/modify system properties"),q=t("thread"),G=t(" - show java thread information"),P=t("vmoption"),T=t(" - view/modify the vm diagnostic options."),z=t("vmtool"),W=t(" - jvm tool, getInstances in jvm, forceGc"),D=e("h2",{id:"class-classloader-related",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#class-classloader-related","aria-hidden":"true"},"#"),t(" class/classloader - related")],-1),F=t("classloader"),H=t(" - check the inheritance structure, urls, class loading info for the specified class; using classloader to get the url of the resource e.g. "),K=e("code",null,"java/lang/String.class",-1),O=t("dump"),Q=t(" - dump the loaded classes in byte code to the specified location"),U=t("jad"),X=t(" - decompile the specified loaded classes"),Y=t("mc"),Z=t(" - Memory compiler, compiles "),$=e("code",null,".java",-1),tt=t(" files into "),et=e("code",null,".class",-1),ot=t(" files in memory"),st=t("redefine"),nt=t(" - load external "),lt=e("code",null,"*.class",-1),it=t(" files and re-define it into JVM"),dt=t("retransform"),ct=t(" - load external "),at=e("code",null,"*.class",-1),ht=t(" files and retransform it into JVM"),rt=t("sc"),_t=t(" - check the info for the classes loaded by JVM"),ut=t("sm"),mt=t(" - check methods info for the loaded classes"),ft=e("h2",{id:"monitor-watch-trace-related",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#monitor-watch-trace-related","aria-hidden":"true"},"#"),t(" monitor/watch/trace - related")],-1),pt={class:"custom-container warning"},gt=e("p",{class:"custom-container-title"},"WARNING",-1),bt=e("strong",null,"Attention",-1),yt=t(": commands here are taking advantage of byte-code-injection, which means we are injecting some "),vt={href:"https://en.wikipedia.org/wiki/Aspect-oriented_programming",target:"_blank",rel:"noopener noreferrer"},wt=t("aspects"),jt=t(" into the current classes for monitoring and statistics purpose. Therefore, when using it for online troubleshooting in your production environment, you'd better "),kt=e("strong",null,"explicitly specify",-1),xt=t(" classes/methods/criteria, and remember to remove the injected code by "),At=e("code",null,"stop",-1),Vt=t(" or "),Ct=e("code",null,"reset",-1),Jt=t("."),Mt=t("monitor"),Nt=t(" - monitor method execution statistics"),Bt=t("stack"),It=t(" - display the stack trace for the specified class and method"),Et=t("trace"),Lt=t(" - trace the execution time of specified method invocation"),Rt=t("tt"),St=t(" - time tunnel, record the arguments and returned value for the methods and replay"),qt=t("watch"),Gt=t(" - display the input/output parameter, return object, and thrown exception of specified method invocation"),Pt=e("h2",{id:"profiler-flame-graph",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#profiler-flame-graph","aria-hidden":"true"},"#"),t(" profiler/flame graph")],-1),Tt=t("profiler"),zt=t(" - use "),Wt={href:"https://github.com/jvm-profiling-tools/async-profiler",target:"_blank",rel:"noopener noreferrer"},Dt=t("async-profiler"),Ft=t(" to generate flame graph"),Ht=t("jfr"),Kt=t(" - dynamic opening and closing of jfr recordings"),Ot=e("h2",{id:"authentication",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#authentication","aria-hidden":"true"},"#"),t(" authentication")],-1),Qt=t("auth"),Ut=t(" - authentication"),Xt=e("h2",{id:"options",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#options","aria-hidden":"true"},"#"),t(" options")],-1),Yt=t("options"),Zt=t(" - check/set Arthas global optionss"),$t=e("h2",{id:"pipe",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#pipe","aria-hidden":"true"},"#"),t(" pipe")],-1),te=e("p",null,[t("Arthas provides "),e("code",null,"pipe"),t(" to process the result returned from commands further, e.g. "),e("code",null,"sm java.lang.String * | grep 'index'"),t(". Commands supported in "),e("code",null,"pipe"),t(":")],-1),ee=t("grep"),oe=t("- filter the result with the given keyword"),se=e("li",null,"plaintext - remove the ANSI color",-1),ne=e("li",null,"wc - count lines",-1),le=e("h2",{id:"async-jobs",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#async-jobs","aria-hidden":"true"},"#"),t(" async jobs")],-1),ie=t("async"),de=t(" can be handy when a problem is hardly to reproduce in the production environment, e.g. one "),ce=e("code",null,"watch",-1),ae=t(" condition may happen only once in one single day."),he=h('<ul><li>job control - use <code>&gt;</code> to redirect result into the log file, use <code>&amp;</code> to put the job to the background. Job keeps running even if the session is disconnected (the session lifecycle is 1 day by default)</li><li>jobs - list all jobs</li><li>kill - forcibly terminate the job</li><li>fg - bring the suspend job to the foreground</li><li>bg - put the job to run in the background</li></ul><h2 id="basic-arthas-commands" tabindex="-1"><a class="header-anchor" href="#basic-arthas-commands" aria-hidden="true">#</a> Basic Arthas Commands</h2>',2),re=t("base64"),_e=t(" - Encode and decode using Base64 representation."),ue=t("cat"),me=t(" - Concatenate and print files"),fe=t("cls"),pe=t(" - clear the screen"),ge=t("echo"),be=t(" - write arguments to the standard output"),ye=t("grep"),ve=t(" - Pattern searcher"),we=t("help"),je=t(" - display Arthas help"),ke=t("history"),xe=t(" - view command history"),Ae=t("keymap"),Ve=t(" - keymap for Arthas keyboard shortcut"),Ce=t("pwd"),Je=t(" - Return working directory name"),Me=t("quit/exit"),Ne=t(" - exit the current Arthas session, without effecting other sessions"),Be=t("reset"),Ie=t(" - reset all the enhanced classes. All enhanced classes will also be reset when Arthas server is closed by "),Ee=e("code",null,"stop",-1),Le=t("session"),Re=t(" - display current session information"),Se=t("stop"),qe=t(" - terminate the Arthas server, all Arthas sessions will be destroyed"),Ge=t("tee"),Pe=t(" - Copies standard input to standard output, making a copy in zero or more files."),Te=t("version"),ze=t(" - print the version for the Arthas attached to the current Java process");function We(De,Fe){const s=i("RouterLink"),l=i("ExternalLinkIcon");return c(),a("div",null,[_,u,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/dashboard.html"},{default:n(()=>[m]),_:1}),f]),e("li",null,[o(s,{to:"/en/doc/getstatic.html"},{default:n(()=>[p]),_:1}),g]),e("li",null,[o(s,{to:"/en/doc/heapdump.html"},{default:n(()=>[b]),_:1}),y,v]),e("li",null,[o(s,{to:"/en/doc/jvm.html"},{default:n(()=>[w]),_:1}),j]),e("li",null,[o(s,{to:"/en/doc/logger.html"},{default:n(()=>[k]),_:1}),x]),e("li",null,[o(s,{to:"/en/doc/mbean.html"},{default:n(()=>[A]),_:1}),V]),e("li",null,[o(s,{to:"/en/doc/memory.html"},{default:n(()=>[C]),_:1}),J]),e("li",null,[o(s,{to:"/en/doc/ognl.html"},{default:n(()=>[M]),_:1}),N]),e("li",null,[o(s,{to:"/en/doc/perfcounter.html"},{default:n(()=>[B]),_:1}),I]),e("li",null,[o(s,{to:"/en/doc/sysenv.html"},{default:n(()=>[E]),_:1}),L]),e("li",null,[o(s,{to:"/en/doc/sysprop.html"},{default:n(()=>[R]),_:1}),S]),e("li",null,[o(s,{to:"/en/doc/thread.html"},{default:n(()=>[q]),_:1}),G]),e("li",null,[o(s,{to:"/en/doc/vmoption.html"},{default:n(()=>[P]),_:1}),T]),e("li",null,[o(s,{to:"/en/doc/vmtool.html"},{default:n(()=>[z]),_:1}),W])]),D,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/classloader.html"},{default:n(()=>[F]),_:1}),H,K]),e("li",null,[o(s,{to:"/en/doc/dump.html"},{default:n(()=>[O]),_:1}),Q]),e("li",null,[o(s,{to:"/en/doc/jad.html"},{default:n(()=>[U]),_:1}),X]),e("li",null,[o(s,{to:"/en/doc/mc.html"},{default:n(()=>[Y]),_:1}),Z,$,tt,et,ot]),e("li",null,[o(s,{to:"/en/doc/redefine.html"},{default:n(()=>[st]),_:1}),nt,lt,it]),e("li",null,[o(s,{to:"/en/doc/retransform.html"},{default:n(()=>[dt]),_:1}),ct,at,ht]),e("li",null,[o(s,{to:"/en/doc/sc.html"},{default:n(()=>[rt]),_:1}),_t]),e("li",null,[o(s,{to:"/en/doc/sm.html"},{default:n(()=>[ut]),_:1}),mt])]),ft,e("div",pt,[gt,e("p",null,[bt,yt,e("a",vt,[wt,o(l)]),jt,kt,xt,At,Vt,Ct,Jt])]),e("ul",null,[e("li",null,[o(s,{to:"/en/doc/monitor.html"},{default:n(()=>[Mt]),_:1}),Nt]),e("li",null,[o(s,{to:"/en/doc/stack.html"},{default:n(()=>[Bt]),_:1}),It]),e("li",null,[o(s,{to:"/en/doc/trace.html"},{default:n(()=>[Et]),_:1}),Lt]),e("li",null,[o(s,{to:"/en/doc/tt.html"},{default:n(()=>[Rt]),_:1}),St]),e("li",null,[o(s,{to:"/en/doc/watch.html"},{default:n(()=>[qt]),_:1}),Gt])]),Pt,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/profiler.html"},{default:n(()=>[Tt]),_:1}),zt,e("a",Wt,[Dt,o(l)]),Ft]),e("li",null,[o(s,{to:"/en/doc/jfr.html"},{default:n(()=>[Ht]),_:1}),Kt])]),Ot,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/auth.html"},{default:n(()=>[Qt]),_:1}),Ut])]),Xt,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/options.html"},{default:n(()=>[Yt]),_:1}),Zt])]),$t,te,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/grep.html"},{default:n(()=>[ee]),_:1}),oe]),se,ne]),le,e("p",null,[o(s,{to:"/en/doc/async.html"},{default:n(()=>[ie]),_:1}),de,ce,ae]),he,e("ul",null,[e("li",null,[o(s,{to:"/en/doc/base64.html"},{default:n(()=>[re]),_:1}),_e]),e("li",null,[o(s,{to:"/en/doc/cat.html"},{default:n(()=>[ue]),_:1}),me]),e("li",null,[o(s,{to:"/en/doc/cls.html"},{default:n(()=>[fe]),_:1}),pe]),e("li",null,[o(s,{to:"/en/doc/echo.html"},{default:n(()=>[ge]),_:1}),be]),e("li",null,[o(s,{to:"/en/doc/grep.html"},{default:n(()=>[ye]),_:1}),ve]),e("li",null,[o(s,{to:"/en/doc/help.html"},{default:n(()=>[we]),_:1}),je]),e("li",null,[o(s,{to:"/en/doc/history.html"},{default:n(()=>[ke]),_:1}),xe]),e("li",null,[o(s,{to:"/en/doc/keymap.html"},{default:n(()=>[Ae]),_:1}),Ve]),e("li",null,[o(s,{to:"/en/doc/pwd.html"},{default:n(()=>[Ce]),_:1}),Je]),e("li",null,[o(s,{to:"/en/doc/quit.html"},{default:n(()=>[Me]),_:1}),Ne]),e("li",null,[o(s,{to:"/en/doc/reset.html"},{default:n(()=>[Be]),_:1}),Ie,Ee]),e("li",null,[o(s,{to:"/en/doc/session.html"},{default:n(()=>[Le]),_:1}),Re]),e("li",null,[o(s,{to:"/en/doc/stop.html"},{default:n(()=>[Se]),_:1}),qe]),e("li",null,[o(s,{to:"/en/doc/tee.html"},{default:n(()=>[Ge]),_:1}),Pe]),e("li",null,[o(s,{to:"/en/doc/version.html"},{default:n(()=>[Te]),_:1}),ze])])])}const Ke=d(r,[["render",We],["__file","commands.html.vue"]]);export{Ke as default};