Name
ManagementFactory
Synopsis
This class provides the main entry point into
the java.lang.management API. The static factory
methods provide a convenient way to obtain instances of the various
MXBean interfaces for the currently running Java virtual machine. The returned
instances can then be queried to monitor memory usage, class loading,
and other details of virtual machine performance.
To obtain an MXBean for a Java virtual machine running in another
process, use the newPlatformMXBeanProxy(
)
method, specifying a
javax.management.MBeanServerConnection as well as
the name and type of the desired MXBean. The constant fields of this
class define the names of the available beans. Note that the
javax.management package is beyond the scope of
this quick reference.
public class ManagementFactory { // No Constructor // Public Constants public static final String CLASS_LOADING_MXBEAN_NAME; ="java.lang:type=ClassLoading" public static final String COMPILATION_MXBEAN_NAME; ="java.lang:type=Compilation" public static final String GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPE; ="java.lang:type=GarbageCollector" public static final String MEMORY_MANAGER_MXBEAN_DOMAIN_TYPE; ="java.lang:type=MemoryManager" public static final String MEMORY_MXBEAN_NAME; ="java.lang:type=Memory" public static final String MEMORY_POOL_MXBEAN_DOMAIN_TYPE; ="java.lang:type=MemoryPool" public static final String OPERATING_SYSTEM_MXBEAN_NAME; ="java.lang:type=OperatingSystem" public static final String RUNTIME_MXBEAN_NAME ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access