代码热更新
jad (Java Decompile)、sc (Search Class)、mc (Memory Compiler)、redefine
1. jad --source-only 全限定类名 > /tmp/HotFix.java
2. <Ctrl + d> 退出 Arthas 终端
3. vim /tmp/HotFix.java
4. 打开 Arthas 终端
5. sc -d *类名 | grep classLoaderHash
6. mc -c $classLoaderHash /tmp/HotFix.java -d /tmp
7. redefine /tmp/***.class
标签:tmp,redefine,java,Arthas,jad,HotFix
From: https://www.cnblogs.com/xtyuns/p/17095606.html