# Overriding default jvm options is not working (elastic 7.16.2 and java 11)

**URL:** <https://discuss.elastic.co/t/overriding-default-jvm-options-is-not-working-elastic-7-16-2-and-java-11/302525>\
**Category:** Elasticsearch\
**Created:** [April 15, 2022, 9:04pm UTC](https://discuss.elastic.co/t/overriding-default-jvm-options-is-not-working-elastic-7-16-2-and-java-11/302525 "2022-04-15T21:04:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzyubanv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzyubanv/32/24110_2.png) [@dzyubanv](https://discuss.elastic.co/u/dzyubanv)\
**Post date:** [April 15, 2022, 9:04pm UTC](https://discuss.elastic.co/t/overriding-default-jvm-options-is-not-working-elastic-7-16-2-and-java-11/302525/1 "2022-04-15T21:04:58Z")

</div>

RHEL release 7.9  
jdk-11.0.14 (not bundled)  
Elasticsearch with x-pack security multi hosts/nodes cluster has been setup from Elasticsearch-7.16.2-linux-x86\_64.tar.gz and it is fully functional.

I tried to override default jvm options as follows:  
-copied root jvm.options file from /config/jvm.options into folder /config/jvm.options.d/  
-left root jvm.options file untouched with the default settings  
-changed jvm.options inside /config/jvm.options.d/jvm.options by adding the /full\_path/ to gc.log  
from  
`9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m`  
to  
`9-:-Xlog:gc*,gc+age=trace,safepoint:file=/full_path/logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m`  
-restarted node(s) and can see the changes didn't work

The full file name (jvm.options) in the /config/jvm.options.d/ should be exactly the same as the root file or it might or should be changed somehow or am I missing something ?

Any help on this issue will be appreciated

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:** [May 13, 2022, 9:05pm UTC](https://discuss.elastic.co/t/overriding-default-jvm-options-is-not-working-elastic-7-16-2-and-java-11/302525/2 "2022-05-13T21:05:12Z")

</div>

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