Describe the bug
Profiling is not available for IcedTea and AdoptOpenJDK builds
To Reproduce
Run an application with IcedTea or AdoptOpenJDK JDK and attach to it with visualvm. There will be no "profiler" option.
Expected behavior
Those JVM builds should be supported.
Desktop (please complete the following information):
- OS: Linux gentoo
- JDK version IcedTea 1.8.0_212, AdoptOpenJDK 11.0.3_p7
- Version 1.4.3, also tested commit ad76e9d
Additional context
Add any other context about the problem here.
The supported JVMs are hardcoded here
|
// VM has to be a HotSpot VM or OpenJDK by Sun Microsystems Inc. or |
|
// Oracle Co. or Apple Inc. or Hewlett-Packard Co. or |
|
// Azul Systems, Inc. or SAP AG or Graal VM |
|
return vmName != null && (vmName.startsWith(HOTSPOT_VM_NAME_PREFIX) || vmName.startsWith(OPENJDK_VM_NAME_PREFIX) |
|
|| vmName.startsWith(SAPJDK_VM_NAME_PREFIX) || vmName.startsWith(GRAAL_VM_VENDOR_PREFIX)) && |
|
vmVendor != null && (vmVendor.startsWith(ORACLE_VM_VENDOR_PREFIX) || vmVendor.startsWith(SUN_VM_VENDOR_PREFIX) |
|
|| vmVendor.startsWith(APPLE_VM_VENDOR_PREFIX) || vmVendor.startsWith(HP_VM_VENDOR_PREFIX) |
|
|| vmVendor.startsWith(AZUL_VM_VENDOR_PREFIX) || vmVendor.startsWith(SAP_VM_VENDOR_PREFIX) |
|
|| vmVendor.startsWith(ORACLE1_VM_VENDOR_PREFIX)); |
and doesn't consider IcedTea and AdoptOpenJDK as a supported vendor.
Adding
-J-Dcom.sun.tools.visualvm.profiler.SupportAllVMs=true for 1.4.3 and
-J-Dorg.graalvm.visualvm.profiler.SupportAllVMs=true for latest commit as commandline argument work around the issue.
Describe the bug
Profiling is not available for IcedTea and AdoptOpenJDK builds
To Reproduce
Run an application with IcedTea or AdoptOpenJDK JDK and attach to it with visualvm. There will be no "profiler" option.
Expected behavior
Those JVM builds should be supported.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The supported JVMs are hardcoded here
visualvm/visualvm/profiler/src/org/graalvm/visualvm/profiler/ProfilerSupport.java
Lines 332 to 340 in ad76e9d
Adding
-J-Dcom.sun.tools.visualvm.profiler.SupportAllVMs=truefor 1.4.3 and-J-Dorg.graalvm.visualvm.profiler.SupportAllVMs=truefor latest commit as commandline argument work around the issue.