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

Add support for Java level DCmd

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 18
    • tbd
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated: