Details

    • gc

    Description

      During the Remark pause G1 adjusts the Java heap size to keep a minimum and maximum amount of free regions as set via the `-XX:MinHeapFreeRatio` and `-XX:MaxHeapFreeRatio` options.

      Before this change, G1 considered Eden regions as occupied (full) for this calculation. This makes heap sizing very dependent on current Eden occupancy, although after the next garbage collection these regions will be empty. With this change, Eden regions are considered as empty (free) for matters of Java heap sizing.
      This new policy also aligns Java heap sizing to full GC heap sizing.

      The effect is that G1 now expands the Java heap less aggressively and more deterministically, with corresponding memory savings but potentially executing more garbage collections.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: