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

jcmd help command should not require the process identification

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Now the jcmd help command requires the process identification either with process id or the main class name which is unnecessary and confusing:

      % /java/re/jdk/9/latest/binaries/linux-x64/bin/jcmd help
      Error parsing arguments: No command specified
      . . . .

       % /java/re/jdk/9/latest/binaries/linux-x64/bin/jcmd help VM.flags
      Could not find any processes matching : 'help'

      But the command works if the process id is specified:

      /java/re/jdk/9/latest/binaries/linux-x64/bin/jcmd 28650 help
      28650:
      The following commands are available:
      JFR.configure
      JFR.stop
      JFR.start
      JFR.dump
      JFR.check
      VM.log
      . . . .

      /java/re/jdk/9/latest/binaries/linux-x64/bin/jcmd 28650 help VM.flags
      28650:
      VM.flags
      Print VM flag options and their current values.
      . . . .

      The tool has to be fixed so that the jcmd help command would work without requiring process id or main class name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sspitsyn Serguei Spitsyn
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: