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

Add support for Java level DCmd

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 18
    • 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.

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

              Created:
              Updated: