Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8147899

Embedded specific instructions should be included for keeping the GC heap small

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • 9
    • docs

      This is item #1 from JDK-8138571.

      While working with a customer it was discovered that using the following options helped keep the java heap small, saving dynamic footprint for the customer:

      -XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=5

      Note the defaults for these two options are 70% and 40%. There are likely some performance sacrifices being made with these small settings. Customers who care about small footprint should tune them down as much as possible without introducing more performance degradation than they find acceptable.

      This also relates to JDK-8146436 "Add UseAggressiveHeapShrink option". Customers trying to keep the heap small should also add -XX:+UseAggressiveHeapShrink, presuming it is added to JDK 9 (as of now it is a feature request).

      This CR is a request to make sure there is documentation in place to explain the above to embedded customers.

            cwayne Clifford Wayne (Inactive)
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: