jvm 1.6开始可以动态attache,加载agent,可以修改类,方法等
参考
https://www.cnblogs.com/rickiyang/p/11368932.html
类似技术
https://github.com/alibaba/arthas