arthas/tutorials/katacoda/command-mc-retransform-en/retransform.md
2021-01-13 20:01:30 +08:00

660 B

Load the external *.class files to retransform the loaded classes in JVM.

Reference: Instrumentation#retransformClasses

Options

Name Specification
[c:] hashcode of the class loader
[classLoaderClass:] The class name of the ClassLoader that executes the expression.
[p:] absolute path of the external *.class, multiple paths are separated with 'space'

Restrictions of the retransform command

  • New field/method is not allowed
  • The function that is running, no exit can not take effect.