# 7.10 and UseConcMarkSweepGC

**URL:** <https://discuss.elastic.co/t/7-10-and-useconcmarksweepgc/256153>\
**Category:** Elasticsearch\
**Created:** [November 20, 2020, 4:04pm UTC](https://discuss.elastic.co/t/7-10-and-useconcmarksweepgc/256153 "2020-11-20T16:04:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![teej](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@teej](https://discuss.elastic.co/u/teej)\
**Post date:** [November 20, 2020, 4:04pm UTC](https://discuss.elastic.co/t/7-10-and-useconcmarksweepgc/256153/1 "2020-11-20T16:04:24Z")

</div>

Just upgraded to 7.10 and when restarting I get, "Unrecognized VM option 'UseConcMarkSweepGC".  
Is this to do with options.jvm?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [November 23, 2020, 6:24am UTC](https://discuss.elastic.co/t/7-10-and-useconcmarksweepgc/256153/2 "2020-11-23T06:24:49Z")

</div>

> [@teej](#):
>
> Is this to do with options.jvm?

Yes. At some point you modified `jvm.options` and are no longer using the version that Elasticsearch ships with.  
Your old version includes the `-XX:+UseConcMarkSweepGC` commandline option that is no longer supported on the JVM version that ES ships.

In current versions of Elasticsearch we recommend adding your custom configuration to `jvm.options.d` instead of modifying the `jvm.options` file directly.  
See: [Setting JVM options | Elasticsearch Guide [7.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/jvm-options.html)

---

<div class="post-metadata">

**Author:** ![teej](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@teej](https://discuss.elastic.co/u/teej)\
**Post date:** [November 23, 2020, 3:30pm UTC](https://discuss.elastic.co/t/7-10-and-useconcmarksweepgc/256153/3 "2020-11-23T15:30:54Z")

</div>

Hi TIm,  
Thanks for pointing me in the right direction. I've always seen in docs that you need you change both HEAP sizes in jvm.options, e.g.:  
-Xms16g  
-Xmx16g  
To a number according to memory size and for many versions thats how its been - we never touched anything else - no additions/deletions. So we have never made any other changes to jvm.options other than that. But now, thanks to your response, Ive discovered that not only is "UseConcMarkSweepGC" bad in that original elasticsearch file but so is "CMSInitiatingOccupancyFraction=75" and "UseCMSInitiatingOccupancyOnly" as well. I commented them out and elastic started.

## GC configuration

#-XX:+UseConcMarkSweepGC  
#-XX:CMSInitiatingOccupancyFraction=75  
#-XX:+UseCMSInitiatingOccupancyOnly

So it looks like even though its working, best practice may be to move the HEAP parameters to jvm.options.d?

I would have to create a file in the jvm.options.d file that will contain the:  
-Xms16g  
-Xmx16g  
parameters. Question is, is there a naming convention for such a file? The docs say use (as you did) to use the jvm.options.d but dont mention what are legal file names/extensions for such a file.

---

<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:** [December 21, 2020, 3:31pm UTC](https://discuss.elastic.co/t/7-10-and-useconcmarksweepgc/256153/4 "2020-12-21T15:31:13Z")

</div>

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