1.docker环境下反编译修改代码 并热更新class文件
进入容器: docker exec -it product-cybereng-asset-1 /bin/bash 下载arthas的jar包: curl -O https://arthas.aliyun.com/arthas-boot.jar 启动arthas: java -jar arthas-boot.jar 导出想要修改的类的源码并修改复制回容器: jad --source-only com.fawkes.secure.data.client.IDataScopeSystemClient > /home/project/fawkes/IDataScopeSystemClient.java docker cp product-cybereng-asset-1:/home/project/fawkes/IDataScopeSystemClient.java /opt/produc docker cp /opt/product/IDataScopeSystemClient.java product-cybereng-asset-1:/home/project/fawkes 查看class加载器信息: sc -d com.fawkes.secure.data.client.IDataScopeSystemClient | grep classLoaderHash 重新加载class文件: mc -c 1d56ce6a /home/project/fawkes/IDataScopeSystemClient.java -d /tmp2.docker环境下查看jvm当前状态
3.docker环境下查看jvm参数
未完待续。。。
标签:java,fawkes,arthas,小节,使用,home,docker,IDataScopeSystemClient From: https://www.cnblogs.com/xuetieqi/p/16731775.html