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

当使用jdk11去 attach jdk8 应用时,会抛异常com.sun.tools.attach.AgentLoadException: 0 ,但实际上已经attach成功了 #2249

Closed
hengyunabc opened this issue Aug 16, 2022 · 1 comment
Milestone

Comments

@hengyunabc
Copy link
Collaborator

[WARN] Current VM java version: 11 do not match target VM java version: 1.8, attach may fail.
[WARN] Target VM JAVA_HOME is /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home, arthas-boot JAVA_HOME is /Users/hengyunabc/.sdkman/candidates/java/11.0.11-zulu/zulu-11.jdk/Contents/Home, try to set the same JAVA_HOME.
[ERROR] Start arthas failed, exception stack trace:
com.sun.tools.attach.AgentLoadException: 0
	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:108)
	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:119)
	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:147)
	at com.taobao.arthas.core.Arthas.attachAgent(Arthas.java:122)
	at com.taobao.arthas.core.Arthas.<init>(Arthas.java:27)
	at com.taobao.arthas.core.Arthas.main(Arthas.java:151)

这种情况也应该尝试去连接?

@hengyunabc hengyunabc added this to the 3.6.5 milestone Aug 16, 2022
@hengyunabc
Copy link
Collaborator Author

参考这个: https://stackoverflow.com/a/54454418

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