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

报错java.lang.UnsatisfiedLinkError: no attach in java.library.path #308

Closed
hanszhou1024 opened this issue Dec 28, 2020 · 3 comments
Closed

Comments

@hanszhou1024
Copy link

hanszhou1024 commented Dec 28, 2020

问题
我运行了一个springboot web项目,想测试下看看效果,结果。。。

[root@node19216820115 bin]# ./sandbox.sh -p 108062
java.lang.UnsatisfiedLinkError: no attach in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.tools.attach.LinuxVirtualMachine.(LinuxVirtualMachine.java:342)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)
at com.alibaba.jvm.sandbox.core.CoreLauncher.attachAgent(CoreLauncher.java:59)
at com.alibaba.jvm.sandbox.core.CoreLauncher.(CoreLauncher.java:20)
at com.alibaba.jvm.sandbox.core.CoreLauncher.main(CoreLauncher.java:43)
sandbox load jvm failed : no attach in java.library.path
attach JVM 108062 fail.

照着文档做,根本就运行不起来。

@hanszhou1024
Copy link
Author

demo.zip
java -jar demo-arthas-spring-boot.jar

@z529192557
Copy link
Collaborator

下载了demo,试了一下,没有出现这个问题

@z529192557
Copy link
Collaborator

LinuxVirtualMachine 这个类值得注意一下

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

3 participants