RFR: 8275259: Add support for Java level DCmd
David Holmes
david.holmes at oracle.com
Thu Oct 14 07:38:30 UTC 2021
On 14/10/2021 5:14 pm, Denghui Dong wrote:
> On Thu, 14 Oct 2021 06:43:20 GMT, David Holmes <david.holmes at oracle.com> wrote:
>
>> I'm not sure exactly where this API would need to go. IIUC jcmd doesn't
> exist at the Java level it is just a tool, so introducing an API to
> interact with it seems problematic to me.
>
> IMO, `jcmd` is a client of `dcmd`, the user also can use JMX to execute `dcmd`, this means there already are Java APIs interact with `dcmd`.
Ah right - so you're really looking at extending the capabilities of the
DiagnosticCommandMBean to add a way to register a Java diagnostic command.
David
> Denghui
>
> -------------
>
> PR: https://git.openjdk.java.net/jdk/pull/5938
>
More information about the serviceability-dev
mailing list