public interface GarbageCollectorMXBean extends MemoryManagerMXBean
Multiple instances of this interface are available to clients. Each may be
distinguished by their separate ObjectName
value.
Accessing this kind of MXBean
can be done in one of three
ways.
ManagementFactory.getGarbageCollectorMXBeans()
method which returns a
List
of all currently instantiated GarbageCollectorMXBeans.
MBeanServerConnection
.ManagementFactory.newPlatformMXBeanProxy(javax.management.MBeanServerConnection, java.lang.String, java.lang.Class<T>)
method, passing in the
string "java.lang:type=GarbageCollector,name= unique collector's name
" for the value of the second parameter.Modifier and Type | Method and Description |
---|---|
long |
getCollectionCount()
Returns in a long the number of garbage collections carried out by the
associated collector.
|
long |
getCollectionTime()
For the associated garbage collector, returns the total amount of time in
milliseconds that it has spent carrying out garbage collection.
|
getMemoryPoolNames, getName, isValid
getObjectName
long getCollectionCount()
long getCollectionTime()
Link to Eclipse OpenJ9 documentation.
To raise a bug report or suggest an improvement create an Eclipse Openj9 issue.
Copyright © 1993, 2020, IBM Corp. All rights reserved.