arthas使用参考arthas文档
sc -d 类名 获取到类加载器哈希
sc -d com.test.service.TestServiceImpl
得到:
xxxxxxxxxxxxxxxxxx
xxxxxxxxxxxx
classLoaderHash 18b4aac2
根据类加载器调用bean方法
vmtool --action getInstances -c 18b4aac2 --className org.springframework.context.ApplicationContext --express '#data=new com.test.entity.TestEntity(),#data.setId("1220091926917696"),#data.setA("22s4003789049857"),instances[0].getBean("testServiceImpl").doSomeBis(#data)' -x 3
创建TestEntity对象作为参数调用testServiceImplbean的doSomeBis方法