Java: does GarbageCollectorMBean.getCollectionTime return pause time or something else?

Oracle javadoc for GarbageCollectorMBean.getCollectionTime says: "Returns the estimated accumulated collection time in milliseconds." Is this a pause time, or is it generally the time spent on any garbage collector threads?

+4
source share
1 answer

GarbageCollectorMBean.getCollectionTime () returns the cumulative wall clock time in milliseconds for a particular algorithm.

For Stop-the-World algorithms (usually for young collections) this can be interpreted as a temporary application has been suspended.

, STW, ( , ).

, GC, ( , ).

+6

All Articles