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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: