arthas icon indicating copy to clipboard operation
arthas copied to clipboard

不同电脑连接同一个环境,执行watch命令时,一个正常,一个报找不到类方法

Open Crayon-kk opened this issue 8 months ago • 0 comments

  • [x] 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: xxx
  • Arthas 版本: 3.5.4
  • 操作系统版本: centos7
  • 目标进程的JVM版本: java8

重现问题的步骤

Image

期望的结果

报错电脑需要进行什么设置吗?为什么一个可以正常使用,一个报找不到方法

实际运行的结果

[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:

  1. Execute sm CLASS_NAME METHOD_NAME to make sure the method you are tracing actually exists (it might be in your parent class).
  2. Execute options unsafe true, if you want to enhance the classes under the java.* package.
  3. Execute reset CLASS_NAME and try again, your method body might be too large.
  4. Check arthas log: /root/logs/arthas/arthas.log
  5. Visit https://github.com/alibaba/arthas/issues/47 for more details.

Crayon-kk avatar Jun 04 '25 01:06 Crayon-kk