# Elasticsearch 6.6.1, Java 11, GC

**URL:** https://discuss.elastic.co/t/elasticsearch-6-6-1-java-11-gc/171137
**Category:** Elasticsearch
**Created:** [March 6, 2019, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-6-6-1-java-11-gc/171137 "2019-03-06T14:36:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sergeyarl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergeyarl/32/123391_2.png) [@sergeyarl](https://discuss.elastic.co/u/sergeyarl)
#### Post date: [March 6, 2019, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-6-6-1-java-11-gc/171137/1 "2019-03-06T14:36:28Z")

</div>

Hi!

I'm not a Java person, so I'm sorry if I'm asking nonsense 🙂

Recently we upgraded ES to version 6.6.1 and Java to version 11. So I'm wondering what GC is now used - CMS, as before, or G1. I'm asking because I see G1 is mentioned multiple times in /\_nodes/ output.

Our jvm.options file:

```
-Dfile.encoding=UTF-8
-Dio.netty.noKeySetOptimization=true
-Dio.netty.noUnsafe=true
-Dio.netty.recycler.maxCapacityPerThread=0
-Djava.awt.headless=true
-Djna.nosys=true
-Dlog4j.shutdownHookEnabled=false
-Dlog4j2.disable.jmx=true
-XX:+AlwaysPreTouch
-XX:+HeapDumpOnOutOfMemoryError
-XX:+UseCMSInitiatingOccupancyOnly
-XX:-OmitStackTraceInFastThrow
-XX:CMSInitiatingOccupancyFraction=75
-Xlog:gc*:file=/var/log/elasticsearch/es-01/gc.log::filecount=10,filesize=4096
-Xlog:gc+age=trace
-Xlog:safepoint
-Xms15g
-Xmx15g
-Xss1m
-server

```

Thank you!

---

<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: [April 3, 2019, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-6-6-1-java-11-gc/171137/2 "2019-04-03T14:36:39Z")

</div>

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