jmx-dev RFR: 8368527: JMX: Add an MXBeans method to query GC CPU time

Alan Bateman alanb at openjdk.org
Tue Sep 30 10:45:15 UTC 2025


On Mon, 29 Sep 2025 01:33:23 GMT, David Holmes <dholmes at openjdk.org> wrote:

> I don't think this is appropriately placed in MemoryMXBean. I will discuss in the CSR request

The CSR is probably a bit premature as this one is going to require seeing if the existing MXBeans are the best place for this (at least some of the original modelling assumed STW collectors) or whether a new management interface is needed.

It will need think about whether should be a standard or JDK-specific API. Right now, the draft API spec makes it sounds very HotSpot VM specific.

If added to an existing interface then it will need to be a default method and specifies to have default behavior when not implemented.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27537#issuecomment-3351299156


More information about the jmx-dev mailing list