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

HotspotInternalMBeans should be removed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-svc
    • None

      In java.management, the sun.management.HotspotInternalMBean is an undocumented, unsupported and experimental interface.

      HotspotInternalMBean can be manually instantiated by a Java app, then the MBeans retrieved by name. Or, ManagementFactoryHelper has methods to return them, e.g. getHotspotRuntimeMBean().

      The separate class java.lang.management.ManagementFactory is the documented factory class for getting managed beans for the Java platform.

      Creating a HotspotInternalMBean causes creation of other sun.management MBeans, which are then registered with the MBean server:

      HotspotClassLoading implements HotspotClassLoadingMBean
      HotspotMemory implements HotspotMemoryMBean
      HotspotRuntime implements HotspotRuntimeMBean
      HotspotThread implements HotspotThreadMBean
      HotspotCompilation implements HotspotCompilationMBean

      These largely provide an interface to VMManagement jvm, and mostly return performance counters, as could be accessed with jcmd PerfCounter.print.


      We should check if anything of use here is not adequately available by other MBeans, or jstat, or any other mechanism. These unpublicised MBeans should be removed if they provide no real value.

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: