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 open