OpenSearch/distribution
Henning Andersen f06aa0c6c0 Fix G1 GC default IHOP (#46169)
G1 GC were setup to use an `InitiatingHeapOccupancyPercent` of 75. This
could leave used memory at a very high level for an extended duration,
triggering the real memory circuit breaker even at low activity levels.
The value is a threshold for old generation usage relative to total heap
size and thus it should leave room for the new generation. Default in
G1 is to allow up to 60 percent for new generation and this could mean that the
threshold was effectively at 135% heap usage. GC would still kick in of course and
eventually enough mixed collections would take place such that adaptive adjustment
of IHOP kicks in.

The JVM has adaptive setting of the IHOP, but this does not kick in
until it has sampled a few collections. A newly started, relatively
quiet server with primarily new generation activity could thus
experience heap above 95% frequently for a duration.

The changes here are two-fold:
1. Use 30% default for IHOP (the JVM default of 45 could still mean
105% heap usage threshold and did not fully ensure not to hit the
circuit breaker with low activity)
2. Set G1ReservePercent=25. This is used by the adaptive IHOP mechanism,
meaning old/mixed GC should kick in no later than at 75% heap. This
ensures IHOP stays compatible with the real memory circuit breaker also
after being adjusted by adaptive IHOP.
2019-09-23 13:35:31 +02:00
..
archives Use AdoptOpenJDK as the bundled JDK (#46470) (#46785) 2019-09-17 13:40:35 -07:00
bwc Disable bwc distribution caching in master branch (#46686) 2019-09-18 11:52:17 -07:00
docker Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
licenses Add notice for bundled jdk (#40576) 2019-03-29 17:21:21 -04:00
packages Remove redundant Java check from Sys V init (#45793) 2019-08-22 22:21:53 -04:00
src Fix G1 GC default IHOP (#46169) 2019-09-23 13:35:31 +02:00
tools Move netty numDirectArenas to jvm.options (#46104) 2019-08-28 19:30:55 -06:00
build.gradle Use AdoptOpenJDK as the bundled JDK (#46470) (#46785) 2019-09-17 13:40:35 -07:00