jcmd help command should not require the process identification

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: