GarbageCollectorMXBean is an interface used by the management system to access garbage collector properties.
GarbageCollectorMXBean
ObjectName pattern: java.lang:type=GarbageCollector,name=collector_name
ObjectName
The number of collections that have been executed by this collector.
The approximate, cumulative time (in milliseconds) spent executing collections for this collector.
The number of collections that have been executed by this collector. A value of -1 means that collection counts are undefined for this collector.
-1