public interface GarbageCollectorMXBean extends MemoryManagerMXBean
ManagementFactory.getGarbageCollectorMXBeans()
.Modifier and Type | Method and Description |
---|---|
long |
getCollectionCount()
Returns the number of collections the garbage collector
represented by this bean has made
|
long |
getCollectionTime()
Returns the accumulated number of milliseconds this garbage
collector has spent freeing the memory used by unreferenced
objects
|
getMemoryPoolNames, getName, isValid
long getCollectionCount()
long getCollectionTime()