Up Top

Serviceability 機能 : HotSpot Monitoring and Management Interface (JMM) : 概要


概要(Summary)

JMM 機能では JSR-174 で規定されている Platform MXBean インターフェースの実装を提供している. また, JSR-174 には規定されていない HotSpot 独自の Platform MXBean も提供している.

以下, インターフェースと実装クラスの双方を説明する.

HotSpot が提供している Platform MXBean インターフェース

HotSpot では以下の3種類のパッケージで Platform MXBean インターフェースを提供している.

具体的なインターフェース名の一覧は以下の通り.

HotSpot が提供している Platform MXBean 実装

Platform MXBean インターフェースを実装したクラスは sun.management パッケージに格納されている.

(参考: http://openjdk.java.net/groups/serviceability/svcjdk.html "The platform MBeans are implemented by classes in sun.management.")

具体的な実装クラスの一覧は以下の通り.

備考(Notes)

con.sum.management パッケージ以下には, 上記の Platform MXBean クラス群を補佐するためのクラス群も定義されている. 具体的なクラス名は以下の通り.

参考(for your information)

com.sun.management 以下の HotSpot 独自のインターフェースの一覧:

    ((cite: jdk/src/share/classes/com/sun/management/HotSpotDiagnosticMXBean.java))
    package com.sun.management;
    ...
    /**
     * Diagnostic management interface for the HotSpot Virtual Machine.
     * The diagnostic MBean is registered to the platform MBeanServer
     * as are other platform MBeans.
     *
     * <p>The <tt>ObjectName</tt> for uniquely identifying the diagnostic
     * MXBean within an MBeanServer is:
     * <blockquote>
     *    <tt>com.sun.management:type=HotSpotDiagnostic</tt>
     * </blockquote>
    .*
     * It can be obtained by calling the
     * {@link PlatformManagedObject#getObjectName} method.
     *
     * @see ManagementFactory#getPlatformMXBeans(Class)
     */
    public interface HotSpotDiagnosticMXBean extends PlatformManagedObject {
    ((cite: jdk/src/share/classes/com/sun/management/GarbageCollectorMXBean.java))
    package com.sun.management;
    ...
    /**
     * Platform-specific management interface for a garbage collector
     * which performs collections in cycles.
     *
     * <p> This platform extension is only available to the garbage
     * collection implementation that supports this extension.
     *
     * @author  Mandy Chung
     * @since   1.5
     */
    public interface GarbageCollectorMXBean
        extends java.lang.management.GarbageCollectorMXBean {
    ((cite: jdk/src/share/classes/com/sun/management/OperatingSystemMXBean.java))
    package com.sun.management;
    ...
    /**
     * Platform-specific management interface for the operating system
     * on which the Java virtual machine is running.
     *
     * <p>
     * The <tt>OperatingSystemMXBean</tt> object returned by
     * {@link java.lang.management.ManagementFactory#getOperatingSystemMXBean()}
     * is an instance of the implementation class of this interface
     * or {@link UnixOperatingSystemMXBean} interface depending on
     * its underlying operating system.
     *
     * @author  Mandy Chung
     * @since   1.5
     */
    public interface OperatingSystemMXBean extends
        java.lang.management.OperatingSystemMXBean {
    ((cite: jdk/src/share/classes/com/sun/management/UnixOperatingSystemMXBean.java))
    package com.sun.management;
    ...
    /**
     * Platform-specific management interface for the Unix
     * operating system on which the Java virtual machine is running.
     *
     * @author  Mandy Chung
     * @since   1.5
     */
    public interface UnixOperatingSystemMXBean extends
        com.sun.management.OperatingSystemMXBean {
    ((cite: jdk/src/share/classes/com/sun/management/ThreadMXBean.java))
    package com.sun.management;
    ...
    /**
     * Platform-specific management interface for the thread system
     * of the Java virtual machine.
     * <p>
     * This platform extension is only available to a thread
     * implementation that supports this extension.
     *
     * @author  Paul Hohensee
     * @since   6u25
     */
    ...
    public interface ThreadMXBean extends java.lang.management.ThreadMXBean {
    ((cite: jdk/src/solaris/classes/com/sun/management/UnixOperatingSystem.java))
    /**
     * Implementation class for the operating system.
     * Standard and committed hotspot-specific metrics if any.
     *
     * ManagementFactory.getOperatingSystemMXBean() returns an instance
     * of this class.
     */
    class UnixOperatingSystem
        extends    sun.management.OperatingSystemImpl
        implements UnixOperatingSystemMXBean {
    ((cite: jdk/src/windows/classes/com/sun/management/OperatingSystem.java))
    /**
     * Implementation class for the operating system.
     * Standard and committed hotspot-specific metrics if any.
     *
     * ManagementFactory.getOperatingSystemMXBean() returns an instance
     * of this class.
     */
    class OperatingSystem
        extends    sun.management.OperatingSystemImpl
        implements OperatingSystemMXBean {

Subcategories


This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.