Add support for Java level DCmd

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 18
    • Component/s: hotspot
    • None
    • svc

      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.

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

              Created:
              Updated: