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
can't run on openjdk #174
Comments
Try to run |
i have change my jvm to oraclejdk1.8 and the problem still exists.
|
|
@aaronwong1989 Try to run: find /usr/lib/jvm/oracle-jdk-1.8.0_181 | grep 'instrument' In my ubuntu, result is:
|
@hengyunabc |
It seems that the target JVM can not load the instrument library.
|
@hengyunabc Problem appears when The target JVM is java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64, and The JVM that starts arthas is oracle-jdk-1.8.0_181 . Initially, there was only one JVM( java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64) on my server, and arthas does not works. then I installed There are 2 java process on my server:
after restart jenkins (do not restart ajax-srv-0.0.1.jar),arthas can monitor Jenkins but can't works on process [2]. then I restart ajax-srv-0.0.1.jar, and it works ! the conclusion seems likes : arthas can't run on openjdk ,at least on my machine. more information
It seems that it has nothing to do with "libinstrument.so". |
Corrections :Arthas can't monitor java processes that run on The openjdk |
@aaronwong1989 有没有比较确定的办法来重现这个问题,我本地开发用的就是 opentjdk,测试mac/linux opent jdk都没有问题。 |
@hengyunabc 生产环境也是openjdk,第一次运行arthas也是这个问题,重启程序之后再启动arthas就能attach上了... |
和 @oakax 一样,生成环境也是openjdk,第一次运行就会出现这个问题,重启应用程序在启动arthas就可以了 |
Environment
Steps to reproduce this issue
Expected Result
Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: