com.ibm.lang.management
Interface MemoryPoolMXBean
All Superinterfaces:
java.lang.management.MemoryPoolMXBean
- public interface MemoryPoolMXBean
- extends java.lang.management.MemoryPoolMXBean
Since:
1.5
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getPreCollectionUsage()
If supported by the virtual machine, returns a
MemoryUsage which
encapsulates this memory pool's memory usage before the most
recent run of the garbage collector.
|
Methods inherited from interface java.lang.management.MemoryPoolMXBean |
---|
getCollectionUsage, getCollectionUsageThreshold, getCollectionUsageThresholdCount, getMemoryManagerNames, getName, getPeakUsage, getType, getUsage, getUsageThreshold, getUsageThresholdCount, isCollectionUsageThresholdExceeded, isCollectionUsageThresholdSupported, isUsageThresholdExceeded, isUsageThresholdSupported, isValid, resetPeakUsage, setCollectionUsageThreshold, setUsageThreshold |
Method Detail
getPreCollectionUsage
- java.lang.management.MemoryUsage getPreCollectionUsage( )
Returns:
a
MemoryUsage
containing the usage details for the memory
pool just before the most recent collection occurred.
MemoryUsage
which encapsulates this memory pool's memory usage before the most recent run of the garbage collector. No garbage collection will be actually occur as a result of this method getting called.The method will return a
null
if the virtual machine does not support this type of functionality.MBeanServer access:
The return value will be mapped to aCompositeData
with attributes as specified inMemoryUsage
.