The management interface for a memory manager. A memory manager manages one or more memory pools of the Java virtual machine.
A Java virtual machine has one or more memory managers.
An instance implementing this interface is
a managed bean (MBean) conforming to the JMX Instrumentation
Specification. The MBean can be obtained by calling
the ManagementFactory.getMemoryManagerMBeans()
method.
An application can monitor the instrumentation of a memory manager
and manage certain characteristics in any of the following ways:
MBeanServer
.MBean proxy
and call the methods of the MBean proxy.The ManagementFactory.getPlatformMBeanServer()
method returns
the platform MBeanServer registered with all platform MBeans.
The ObjectName for uniquely identifying the MBean for a memory manager within an MBeanServer is:
java.lang:type=MemoryManager
,name=manager's name
MemoryMBean
,
Ways to Access Management MetricsMethod Summary | |
---|---|
List |
getMemoryPoolNames()
Returns the list of the names of memory pools that this memory manager manages. |
String |
getName()
Returns the name representing this memory manager. |
boolean |
isValid()
Tests if this memory manager is valid in the Java virtual machine. |
Method Detail |
---|
String getName()
boolean isValid()
List getMemoryPoolNames()