# InitiatingHeapOccupancyPercent tuning parameter value modification ( 75 to 30 )from 7.0.1 version to 7.8.0 in G1GC for elasticsearch

**URL:** <https://discuss.elastic.co/t/initiatingheapoccupancypercent-tuning-parameter-value-modification-75-to-30-from-7-0-1-version-to-7-8-0-in-g1gc-for-elasticsearch/245760>\
**Category:** Elasticsearch\
**Created:** [August 20, 2020, 12:16pm UTC](https://discuss.elastic.co/t/initiatingheapoccupancypercent-tuning-parameter-value-modification-75-to-30-from-7-0-1-version-to-7-8-0-in-g1gc-for-elasticsearch/245760 "2020-08-20T12:16:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pratiksha](https://discuss.elastic.co/u/pratiksha)\
**Post date:** [August 20, 2020, 12:16pm UTC](https://discuss.elastic.co/t/initiatingheapoccupancypercent-tuning-parameter-value-modification-75-to-30-from-7-0-1-version-to-7-8-0-in-g1gc-for-elasticsearch/245760/1 "2020-08-20T12:16:48Z")

</div>

"InitiatingHeapOccupancyPercent" parameter is set to 75 for elasticsearch 7.0.1, which is now updated to 30. Please state the reason why was it changed and what effect did it have.

7.0.1 version's jvm.options snippet:

```auto
## G1GC Configuration
# NOTE: G1GC is only supported on JDK version 10 or later.
# To use G1GC uncomment the lines below.
# 10-:-XX:-UseConcMarkSweepGC
# 10-:-XX:-UseCMSInitiatingOccupancyOnly
# 10-:-XX:+UseG1GC
# 10-:-XX:InitiatingHeapOccupancyPercent=75

```

7.8.0 version's snippet:

```auto
## 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-13:-XX:-UseConcMarkSweepGC
# 10-13:-XX:-UseCMSInitiatingOccupancyOnly
14-:-XX:+UseG1GC
14-:-XX:G1ReservePercent=25
14-:-XX:InitiatingHeapOccupancyPercent=30

```

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 20, 2020, 12:59pm UTC](https://discuss.elastic.co/t/initiatingheapoccupancypercent-tuning-parameter-value-modification-75-to-30-from-7-0-1-version-to-7-8-0-in-g1gc-for-elasticsearch/245760/2 "2020-08-20T12:59:52Z")

</div>

Elasticsearch 7.8 by default uses G1GC which required different settings compared to CMS GC which is used in Elasticsearch 7.1.

---

<div class="post-metadata">

**Author:** ![pratiksha](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pratiksha](https://discuss.elastic.co/u/pratiksha)\
**Post date:** [September 2, 2020, 12:22pm UTC](https://discuss.elastic.co/t/initiatingheapoccupancypercent-tuning-parameter-value-modification-75-to-30-from-7-0-1-version-to-7-8-0-in-g1gc-for-elasticsearch/245760/3 "2020-09-02T12:22:32Z")

</div>

We are using java 11, so the default GC still remains as CMS only.  
But, we have to use G1 as the garbage collector. For achieving this, we have changed the jvm.options to enable G1GC for java 11. Please confirm, if we can still use the same configuration of G1GC for java 11 as well.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 30, 2020, 12:22pm UTC](https://discuss.elastic.co/t/initiatingheapoccupancypercent-tuning-parameter-value-modification-75-to-30-from-7-0-1-version-to-7-8-0-in-g1gc-for-elasticsearch/245760/4 "2020-09-30T12:22:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
