oracle / visualvm

VisualVM is an All-in-One Java Troubleshooting Tool
https://visualvm.github.io/
Other
2.79k stars 297 forks source link

Visual VM 2.1.7 connects to my java application of JMX port but say Not supported for this JVM #531

Open manojjb opened 8 months ago

manojjb commented 8 months ago

Describe the bug I am running the Visual VM 2.1.7 on my Mac ARM based. My application is running on the openjdk. The details for the version and distribution below java -version openjdk version "17.0.8" 2023-07-18 OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7) OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode)

I have enabled the JMX on localhost. Now when I run the Visual VM on the MAC it detects my application but it shows as disabled on the application pane. When I right click on my application and press open it show the "Not supported for this JVM"

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

VisualVM log Attached is the log file

[logfile.txt](https://github.com/oracle/visualvm/files/13290175/logfile.txt)

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

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

thurka commented 7 months ago

It looks to me that JMX is not enabled on your localhost - BTW: This needs to enabled for every Java process separately. How did you "enabled the JMX on localhost" and why do you need it? VisualVM will enable JMX in local Java processes automatically.

nufeng1999 commented 7 months ago

encounter the same problem

OksiBlack commented 1 week ago

same for me, but java 21 temurin and version 2.1.8

thurka commented 1 week ago

same for me, but java 21 temurin and version 2.1.8

Please provide steps to reproduce. Thanks.