Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下Arthas能否watch到Jdk相关方法的执行情况 #2964

Open
1 task done
ohMyJason opened this issue Nov 27, 2024 · 2 comments
Open
1 task done

请教一下Arthas能否watch到Jdk相关方法的执行情况 #2964

ohMyJason opened this issue Nov 27, 2024 · 2 comments

Comments

@ohMyJason
Copy link

ohMyJason commented Nov 27, 2024

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

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 3.1.7
  • Arthas 版本: 3,1,7
  • 操作系统版本: centerOs 7.2
  • 目标进程的JVM版本: jdk11
  • 执行arthas-boot的版本: 3.1.5

重现问题的步骤

  1. 启动Arthas, 连接目标tomcat
  2. 测试普通方法, 正常捕获
  3. 执行watch java.lang.String substring '{params,returnObj,throwExp}' -n 5 -x 3 命令
  4. 返回
    No class or method is affected, try:
  5. sm CLASS_NAME METHOD_NAME to make sure the method you are tracing actually exists (it might be in your parent class).
  6. reset CLASS_NAME and try again, your method body might be too large.
  7. check arthas log: /root/logs/arthas/arthas.log
  8. visit No class or method is affected/Trace, watch等命令无法找到对应的类和方法 #47 for more details.
  9. sm搜索sm java.lang.String substring
    返回java.lang.String substring(II)Ljava/lang/String;
    java.lang.String substring(I)Ljava/lang/String;
    Affect(row-cnt:2) cost in 43 ms.
  10. log无新信息打印

期望的结果

What do you expected from the above steps?
希望可以正常监控substring 方法的入参出差和异常信息

实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

把异常信息贴到这里
@ohMyJason
Copy link
Author

运行操作系统环境是CentOs 7.2

@ohMyJason
Copy link
Author

已解决 #47 (comment)
请问后续版本可以支持吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant