arthas-boot 使用
1、下载(官网上很详细)
wget https://alibaba.github.io/arthas/arthas-boot.jar
2、启动
java -jar arthas-boot.jar
可以先ps -ef|grep java 查看当前的java进程,根据进程选择需要的项目。
进入成功
jad com.taomini.core.schedule.SendSchedule
jad命令,查看你需要的查看的java类
sc -d *SendSchedule grep classLoaderHash
此命令查询对应的java类的hash值(类名前加上*号匹配)
redefine -c 75005ea6 待替换的class路径
替换class文件,平滑更新文件