site/docs/en/doc/commands.md
jmapjava/lang/String.class.java files into .class files in memory*.class files and re-define it into JVM*.class files and retransform it into JVM::: warning
Attention: commands here are taking advantage of byte-code-injection, which means we are injecting some aspects into the current classes for monitoring and statistics purpose. Therefore, when using it for online troubleshooting in your production environment, you'd better explicitly specify classes/methods/criteria, and remember to remove the injected code by stop or reset.
:::
Arthas provides pipe to process the result returned from commands further, e.g. sm java.lang.String * | grep 'index'. Commands supported in pipe:
async can be handy when a problem is hardly to reproduce in the production environment, e.g. one watch condition may happen only once in one single day.
> to redirect result into the log file, use & to put the job to the background. Job keeps running even if the session is disconnected (the session lifecycle is 1 day by default)stop