Java Reference
In-Depth Information
Figure 7-5. Histogram comparison
GC overhead limit reached
The final case where the JVM throws an out of memory error is when it determines that is it
spending too much time performing GC:
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
This error is thrown when all of the following conditions are met:
1. The amount of time spent in full GCs exceeds the value specified by the -
XX:GCTimeLimit= N flag. The default value is 98 (i.e., if 98% of the time is spent in
GC).
Search WWH ::




Custom Search