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

Add support for Java level DCmd

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 18
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc

      Description

      DCmd is currently widely used inside hotspot, we can consider extending it to the Java layer so that Java developers can also customize their own commands.

      Developers can register commands in a manner similar to the following, and use `jcmd` to execute.

      ```
          Factory.register("My.Date", output -> {
            output.println(new Date());
          });


      jcmd <pid> My.Date
      ```

      For more information, please refer to GitHub issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ddong Denghui Dong
              Reporter:
              ddong Denghui Dong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: