arthas
arthas copied to clipboard
不同电脑连接同一个环境,执行watch命令时,一个正常,一个报找不到类方法
- [x] 我已经在 issues 里搜索,没有重复的issue。
环境信息
-
arthas-boot.jar或者as.sh的版本: xxx - Arthas 版本: 3.5.4
- 操作系统版本: centos7
- 目标进程的JVM版本: java8
重现问题的步骤
期望的结果
报错电脑需要进行什么设置吗?为什么一个可以正常使用,一个报找不到方法
实际运行的结果
[arthas@7]$ watch xx.DeviceAccessServiceImpl deviceAccessExecute '{params,returnObj,throwExp}' -n 5 -x 3 Affect(class count: 0 , method count: 0) cost in 7 ms, listenerId: 5 No class or method is affected, try:
- Execute
sm CLASS_NAME METHOD_NAMEto make sure the method you are tracing actually exists (it might be in your parent class). - Execute
options unsafe true, if you want to enhance the classes under thejava.*package. - Execute
reset CLASS_NAMEand try again, your method body might be too large. - Check arthas log: /root/logs/arthas/arthas.log
- Visit https://github.com/alibaba/arthas/issues/47 for more details.