Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212084 G1: Implement UseGCOverheadLimit
  3. JDK-8370491

Release Note: G1: Support UseGCOverheadLimit

XMLWordPrintable

    • gc

      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.

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: