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
MemoryUsagewhich
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.
MemoryUsagewhich 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
nullif the virtual machine does not support this type of functionality.MBeanServer access:
The return value will be mapped to aCompositeDatawith attributes as specified inMemoryUsage.