Exception in thread "main" com.sun.tools.attach.AttachOperationFailedException: java.lang.IllegalArgumentException: Unknown diagnostic command
at jdk.attach/sun.tools.attach.VirtualMachineImpl.execute(VirtualMachineImpl.java:130)
at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:309)
at jdk.jcmd/sun.tools.jmap.JMap.executeCommandForPid(JMap.java:133)
at jdk.jcmd/sun.tools.jmap.JMap.main(JMap.java:118)
Line 117-118 of JMap.java are:
} else if (option.equals("-clstats")) {
executeCommandForPid(pid, "jcmd", "GC.class_stats");
GC.class_stats was removed byJDK-8232759
at jdk.attach/sun.tools.attach.VirtualMachineImpl.execute(VirtualMachineImpl.java:130)
at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:309)
at jdk.jcmd/sun.tools.jmap.JMap.executeCommandForPid(JMap.java:133)
at jdk.jcmd/sun.tools.jmap.JMap.main(JMap.java:118)
Line 117-118 of JMap.java are:
} else if (option.equals("-clstats")) {
executeCommandForPid(pid, "jcmd", "GC.class_stats");
GC.class_stats was removed by
- duplicates
-
JDK-8236968 jmap -clstats fails to work after JDK-8232759
- Resolved
- relates to
-
JDK-8232759 Remove GC.class_stats
- Resolved