Fails to show VisualGC for ZGC
Describe the bug When running a large java app using the ZGC garbage collector, the VisualVM tab VisualGC falsely claims it doesn't support the running JVM (whereas actually, it's the chosen GC that represents a problem).
To Reproduce Steps to reproduce the behavior: 1 Start VisualVM 2 Start a JVM app using the commandline option -XX+UseZGC 3 Find the newly started app in VisualVM and click the VisualGC tab 4 See error
Expected behavior A very nice graphical representation of the current state of the memory use should be displayed
VisualVM log
INFO [com.sun.jvmstat.tools.visualgc.VisualGCView]: Could not create GCSample
java.lang.NullPointerException: Cannot invoke "sun.jvmstat.monitor.LongMonitor.longValue()" because "this.edenSize" is null
at com.sun.jvmstat.tools.visualgc.MonitoredVmModel.getNewGenMaxSize(MonitoredVmModel.java:250)
at com.sun.jvmstat.tools.visualgc.GCSample.
Desktop (please complete the following information):
- OS: Ubuntu 20.10 and Ubuntu 20.04
- JDK version JDK 15
- VisualVM version 2.0.5
Additional context Very cold weather today
encountered the same problem,with environment : 1. window 10 ;2.JDK version JDK 15;3.VisualVM version 2.0.6 。 everything was ok ,and visual GC plugins worked well .But when i use ZGC by add VM options “-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ConcGCThreads=1” ,i meet the problem like @hallyhaa
+1
Visual VM 2.1.5 still does not work.