Java FAQ _09 Basic Class Library (004) _java.lang.management Package what is the function

Source: Internet
Author: User

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:

  1. 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.

  2. Management Plant
    Managementfactory,mxbean's factory class, Mxbean is managed through the factory model, where it obtains the corresponding Mxbean.

  3. 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.

  4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.