RFR: 8289711: Add container configuration data to mbeans [v2]

xpbob duke at openjdk.org
Thu Jul 14 12:24:03 UTC 2022


On Thu, 14 Jul 2022 08:23:37 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>>> > Thanks for review.
>>> > I add mBeans using the registerMBean method.
>>> > We can get configuration information through JConsole, JMX exporter
>>> 
>>> This iteration is a bit confusing because it adds a public interface to java.lang.management. For the registerMBean prototype then you shouldn't need any API changes to the java.management module.
>> @AlanBateman Thanks for review.
>> The runtime information is already fetched through the OperatingSystemMXBean, and I'm wrapped through the interface, keeping only the configuration data.Such an interface could be part of management.
>
>> Thanks for review. The runtime information is already fetched through the OperatingSystemMXBean, and I'm wrapped through the interface, keeping only the configuration data.Such an interface could be part of management.
> 
> I don't think this feature should be adding to the standard API. Can you move ContainerInfoMXBean to sun.management and do some experiments?

Thanks for review. @AlanBateman 
I move ContainerInfoMXBean to sun.management, the data is not available,
![图片](https://user-images.githubusercontent.com/7837910/178977950-3a058e90-86cc-4630-b496-5249f3e34a9f.png)
The red character indicates that it is not available

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

PR: https://git.openjdk.org/jdk/pull/9372


More information about the serviceability-dev mailing list