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

JDK SocketChannel中的方法无法watch #807

Closed
1 task
gollon opened this issue Aug 8, 2019 · 3 comments
Closed
1 task

JDK SocketChannel中的方法无法watch #807

gollon opened this issue Aug 8, 2019 · 3 comments

Comments

@gollon
Copy link

gollon commented Aug 8, 2019

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

环境信息

  • arthas-boot.jar 或者 as.sh 的版本: 3.1.1
  • Arthas 版本: 3.1.1
  • 操作系统版本: linux 2.6.32-504.el6.x86_64
  • 目标进程的JVM版本: jdk1.7 23.1-b03 Java HotSpot(TM) 64-Bit Server VM
  • 执行arthas-boot的版本: 3.1.1

重现问题的步骤

watch sun.nio.ch.SocketChannelImpl connect '{params,throwExp}' -e -x 3

期望的结果

正常监控SocketChannelImpl 中的 open,connect等方法

实际运行的结果

$ watch sun.nio.ch.SocketChannelImpl connect '{params,throwExp}' -e -x 3
No class or method is affected, try:

  1. sm CLASS_NAME METHOD_NAME to make sure the method you are tracing actually exists (it might be in your parent class).
  2. reset CLASS_NAME and try again, your method body might be too large.
  3. check arthas log: /root/logs/arthas/arthas.log
  4. visit No class or method is affected/Trace, watch等命令无法找到对应的类和方法 #47 for more details.
arthas.log 中没有异常信息
@hengyunabc
Copy link
Collaborator

options 有一个 unsafe开关要打开

@gollon
Copy link
Author

gollon commented Aug 9, 2019

thanks

@MZLCC
Copy link

MZLCC commented Dec 2, 2019

thanks
怎么打开个unsafe开关

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

No branches or pull requests

3 participants