Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236974

sun/tools/jmap/BasicJMapTest.java fails with "IllegalArgumentException: Unknown diagnostic command"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 15
    • core-svc
    • None

      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 by JDK-8232759

            coleenp Coleen Phillimore
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: