Skip to content

Commit

Permalink
Add context for custom GC tunings (opensearch-project#11651) (opensea…
Browse files Browse the repository at this point in the history
…rch-project#11655)

(cherry picked from commit 2c8ee19)

Signed-off-by: Andrew Ross <andrross@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent c5989b0 commit b2c77b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions distribution/src/config/jvm.options
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
8-10:-XX:+UseCMSInitiatingOccupancyOnly

## G1GC Configuration
# NOTE: G1 GC is only supported on JDK version 10 or later
# to use G1GC, uncomment the next two lines and update the version on the
# following three lines to your version of the JDK
# 10:-XX:-UseConcMarkSweepGC
# 10:-XX:-UseCMSInitiatingOccupancyOnly
# NOTE: G1GC is the default GC for all JDKs 11 and newer
11-:-XX:+UseG1GC
# See https://github.com/elastic/elasticsearch/pull/46169 for the history
# behind these settings, but the tl;dr is that default values can lead
# to situations where heap usage grows enough to trigger a circuit breaker
# before GC kicks in.
11-:-XX:G1ReservePercent=25
11-:-XX:InitiatingHeapOccupancyPercent=30

Expand Down

0 comments on commit b2c77b0

Please sign in to comment.