com.ibm.lang.management

Interface MemoryPoolMXBean

All Superinterfaces:
java.lang.management.MemoryPoolMXBean

  1. public interface MemoryPoolMXBean
  2. extends java.lang.management.MemoryPoolMXBean
The IBM-specific interface for managing and monitoring the virtual machine's memory pools.
Since:
1.5

Method Summary

Modifier and Type Method and Description
  1. java.lang.management.MemoryUsage
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

  1. java.lang.management.MemoryUsage 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. 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 a CompositeData with attributes as specified in MemoryUsage.
Returns:
a MemoryUsage containing the usage details for the memory pool just before the most recent collection occurred.