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

Not supported for this JVM #248

Closed
HomoEfficio opened this issue Nov 1, 2020 · 3 comments
Closed

Not supported for this JVM #248

HomoEfficio opened this issue Nov 1, 2020 · 3 comments

Comments

@HomoEfficio
Copy link

Describe the bug
Using,

  • JVM: OpenJDK 64-Bit Server VM (14.0.1+7, mixed mode, sharing)
  • Java: version 14.0.1, vendor AdoptOpenJDK

for both VisualVM and other Java app.
VisualVM shows CPU graph successfully, while other Java app does not.

To Reproduce

  1. Execute VisualVM
  2. See the Monitoring section of VisualVM app
  3. CPU section shows graph successfully
  4. Execute other Java app
  5. See the Monitoring section of the Java app
  6. CPU sectinos shows 'Not supported for this JVM'

Expected behavior
CPU graph should be displayed, instead of 'Not supported for this JVM'

VisualVM log
Please attach VisualVM messages.log file to help diagnose your problem.
visualvm-logfile.txt

Screenshots
If applicable, add screenshots to help explain your problem.
Imgur

Desktop (please complete the following information):

  • OS: MacOS Catalina 10.15.6
  • JDK version: OpenJDK 64-Bit Server VM (14.0.1+7, mixed mode, sharing), version 14.0.1, vendor AdoptOpenJDK
  • VisualVM Version: 2.0.4

Additional context
Only VisualVM's CPU graph is shown successfully, while all other Java app shows 'Not supported for this JVM'.

@thurka
Copy link
Member

thurka commented Nov 2, 2020

It looks like the problem is caused by this exception (taken from your log file):

java.io.IOException: well-known file /var/folders/bv/b_h08xrn6_z68yl0dl38p_w9gdd_01/T/.java_pid70864 is not secure: file's group should be the current group (which is 1003604) but the group is 629569319
	at jdk.attach/sun.tools.attach.VirtualMachineImpl.checkPermissions(Native Method)
	at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:111)
	at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
	at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
	at org.graalvm.visualvm.attach.AttachModelImpl.getVirtualMachine(AttachModelImpl.java:124)

file's group should be the current group (which is 1003604) but the group is 629569319

How is your program started? It seems that it runs in a slightly different context. Do you use Docker?
Can you please try to run
/Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/bin/jrunscript
from Terminal and see if you can reproduce this problem?

@thurka
Copy link
Member

thurka commented Jan 13, 2021

Closing until more info is available.

@thurka thurka closed this as completed Jan 13, 2021
@chaudharisuresh997
Copy link

still it is a problem
My server has server has openjdk 11
my client(windows) has openjdk 14 it gives the same error.
tried with macos
this command succeed nc -vz ip_of_remote_server 9999

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