Click to enter _ more _java FAQ-base Class Library
1, java.lang.management package has what function
The Java.lang.management package provides comprehensive monitoring and management tools, including the JVM's regulatory API, regulatory API logs, jconsole and other monitoring tools, Out-of-the-box's regulatory tools (out-of-the-box), Java Management Extension Platform (JMX) and so on. Sun provides the corresponding implementation class in the Sun.management. Main classes such as:
?
The following describes the classes in Java.lang.management:
Management Interface
Platformmanagedobject, the interface of the platform management object, is the core component of the JMX Mxbean monitoring management platform. This interface is implemented for each platform management object.
Bufferpoolmxbean, buffer pool management interface, can manage and monitor buffer pool, direct or mapped two kinds of buffer pool.
Classloadingmxbean, class loading management interface, can manage and monitor the Java Virtual machine class loading system.
Compilationmxbean, compile the management interface, can manage and monitor the Java Virtual machine's compiling system.
Garbagecollectormxbean, the garbage Collection management interface, allows you to manage and monitor garbage collection for Java virtual machines.
Memorymanagermxbean, Memory/memory pool basic information management interface to manage and monitor basic information for the Java Virtual machine memory/memory pool.
Memorymxbean, Memory information management interface, can manage and monitor the memory information of Java Virtual machine.
Memorypoolmxbean, the Memory pool management interface, can manage and monitor the use of the Java Virtual machine memory pool.
Operatingsystemmxbean, an operating system management interface that manages and monitors information about the operating system that a Java virtual machine is running.
Platformloggingmxbean, the Log management interface, allows you to manage and monitor the logs of Java virtual machines.
Runtimemxbean, the runtime System Management interface, allows you to manage and monitor the operation of your Java virtual machine.
Threadmxbean, a thread management interface that can manage and monitor Java Virtual machine threads.
Management Plant
Managementfactory,mxbean's factory class, Mxbean is managed through the factory model, where it obtains the corresponding Mxbean.
Information Body
Lockinfo, Monitorinfo, lock information class, Lockinfo can be any Java lock (including simple Java locks and locks used in Java.util.concurrent packages: Abstractownablesynchronizer and condition implementation classes/subclasses), whereas Monitorinfo is the lock represented by a simple Java object.
Memorynotificationinfo, the information class for memory notifications.
Memoryusage, a memory snapshot of the information class, can be obtained through the Memorymxbean, Memorypoolmxbean memory management interface to the memory snapshot information.
Threadinfo, the thread's information class, can get information to the thread through the Threadmxbean thread management interface.
Manage Permissions
Managementpermission, the Rights management class, is typically not created manually, but is created by a security policy file.
Learn about the Java.lang.management package use here: [Java.lang.management package How to use][2]
[2]:
Java FAQ _09 Basic Class Library (004) _java.lang.management Package what is the function