com.ibm.lang.management

Interface GarbageCollectorMXBean

All Superinterfaces:
java.lang.management.GarbageCollectorMXBean, java.lang.management.MemoryManagerMXBean

  1. public interface GarbageCollectorMXBean
  2. extends java.lang.management.GarbageCollectorMXBean
The IBM-specific interface for managing and monitoring the virtual machine's garbage collection functionality.
Since:
1.5

Method Summary

Modifier and Type Method and Description
  1. long
getLastCollectionEndTime()
Returns the end time in milliseconds of the last garbage collection that was carried out by this collector.
  1. long
getLastCollectionStartTime()
Returns the start time in milliseconds of the last garbage collection that was carried out by this collector.
  1. long
getMemoryUsed()
Returns the amount of heap memory used by objects that are managed by the collector corresponding to this bean object.
  1. long
getTotalCompacts()
Returns the cumulative total number of compacts that was performed by garbage collector corresponding to this bean object.
  1. long
getTotalMemoryFreed()
Returns the cumulative total amount of memory freed, in bytes, by the garbage collector corresponding to this bean object.
Methods inherited from interface java.lang.management.GarbageCollectorMXBean
getCollectionCount, getCollectionTime
Methods inherited from interface java.lang.management.MemoryManagerMXBean
getMemoryPoolNames, getName, isValid

Method Detail

getLastCollectionStartTime

  1. long getLastCollectionStartTime( )
Returns the start time in milliseconds of the last garbage collection that was carried out by this collector.
Returns:
the start time of the most recent collection

getLastCollectionEndTime

  1. long getLastCollectionEndTime()
Returns the end time in milliseconds of the last garbage collection that was carried out by this collector.
Returns:
the end time of the most recent collection

getMemoryUsed

  1. long getMemoryUsed()
Returns the amount of heap memory used by objects that are managed by the collector corresponding to this bean object.
Returns:
memory used in bytes

getTotalMemoryFreed

  1. long getTotalMemoryFreed()
Returns the cumulative total amount of memory freed, in bytes, by the garbage collector corresponding to this bean object.
Returns:
memory freed in bytes

getTotalCompacts

  1. long getTotalCompacts()
Returns the cumulative total number of compacts that was performed by garbage collector corresponding to this bean object.
Returns:
number of compacts performed