Interface GarbageCollectorMXBean

    • Method Detail

      • getCollectionCount

        long getCollectionCount()
        Returns in a long the number of garbage collections carried out by the associated collector.
        Returns:
        the total number of garbage collections that have been carried out by the associated garbage collector.
      • getCollectionTime

        long getCollectionTime()
        For the associated garbage collector, returns the total amount of time in milliseconds that it has spent carrying out garbage collection.
        Returns:
        the number of milliseconds that have been spent in performing garbage collection. This is a cumulative figure.