RFR: 8275259: Add support for Java level DCmd

David Holmes david.holmes at oracle.com
Thu Oct 14 06:41:24 UTC 2021

On 14/10/2021 4:32 pm, Denghui Dong wrote:
> On Thu, 14 Oct 2021 06:17:13 GMT, David Holmes <dholmes at openjdk.org> wrote:
>>> In the current implementation, I provided some simple APIs in the Java layer (under sun.management.cmd)
>> An API that is expected to be used by application code can't go in the unsupported/internal-use-only sun.management namespace. This would have to be a new external facing supported API.
>> Cheers, David
> Thanks.
>   I consider putting the API into `javax.management.dcmd`. What do you think?

There are very specific rules related to the use of the javax namespace.

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. Other folk in serviceability 
(both VM and JDK sides) will need to weigh in here.


> -------------
> PR: https://git.openjdk.java.net/jdk/pull/5938

More information about the hotspot-runtime-dev mailing list