What does GarbageCollectorMXBean#getCollectionTime mean in G1GC. Is it the sum of pause time(time spent by STW phase) and concurrent phase or something else?
Asked
Active
Viewed 101 times
1 Answers
1
The method getCollectionTime returns a long value of the approximate accumulated collection elapsed time in milliseconds.

HyperProgrammer
- 191
- 6
-
I'm looking for more detailed answer rather than Javadoc reference. Particularly how does it relate to Pause Time and concurrent phases of GC algorithm. Does that metric include both ? – Sairam Cherupally Oct 09 '21 at 10:30