For a concurrent collector, if more that 98% of the total time is spent
in garbage collection and less than 2% of the heap is recovered, an
OutOfMemoryError will be thrown.
The policy is the same as that in the parallel collector, except that time spent
performing concurrent collections is not counted toward the 98% time limit.
In other words, only collections performed while the application is stopped
count toward excessive GC time. Such collections are typically due to a
concurrent mode failure or an explicit collection request (e.g. a call to System
.gc())."
Thanks for your feedback. Let us know if you have additional comments below. (requires login)