-
Sub-task
-
Resolution: Unresolved
-
P4
-
26
The G1 garbage collector now throws an `OutOfMemoryException` when the garbage collection overhead is more than `GCTimeLimit` percent (default value `98`) and the free Java heap is less than `GCHeapFreeLimit` percent (default value `2`) for five consecutive garbage collections.
This feature is enabled by default. It can be disabled using the `-XX:-UseGCOverheadLimit` option.
The implementation mirrors the functionality already provided by the Parallel garbage collector. However there may be differences in the exact conditions for the OOME triggers as G1 calculates garbage collection overhead and free Java heap slightly differently.
This feature is enabled by default. It can be disabled using the `-XX:-UseGCOverheadLimit` option.
The implementation mirrors the functionality already provided by the Parallel garbage collector. However there may be differences in the exact conditions for the OOME triggers as G1 calculates garbage collection overhead and free Java heap slightly differently.