Interface MemoryPoolMXBean

    • Method Detail

      • getPreCollectionUsage

        MemoryUsage 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. 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.