# Elasticsearch ignores jvm.options file not in default folder

**URL:** <https://discuss.elastic.co/t/elasticsearch-ignores-jvm-options-file-not-in-default-folder/98629>\
**Category:** Elasticsearch\
**Created:** [August 29, 2017, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-ignores-jvm-options-file-not-in-default-folder/98629 "2017-08-29T05:36:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bican](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Bican](https://discuss.elastic.co/u/Bican)\
**Post date:** [August 29, 2017, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-ignores-jvm-options-file-not-in-default-folder/98629/1 "2017-08-29T05:36:10Z")

</div>

Hi,  
I'm experiencing a problem with jvm.options file. We use Elasticsearch 5.4 . I specify parameter path.conf during startup.  
Something along lines:  
nohup $ES\_HOME/bin/elasticsearch   
-Epath.conf=$CFG\_DIR/$cluster\_name   
-Ecluster.name=$cluster\_name   
...  
But it seems to ignore settings in jvm.options file. elasticsearch.yml gets processed. jvm.options contains new heap size value. Nothing else is changed.  
Is this normal behavior ?  
Thank you,  
Radovan

---

<div class="post-metadata">

**Author:** ![Bican](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Bican](https://discuss.elastic.co/u/Bican)\
**Post date:** [August 29, 2017, 6:15am UTC](https://discuss.elastic.co/t/elasticsearch-ignores-jvm-options-file-not-in-default-folder/98629/2 "2017-08-29T06:15:24Z")

</div>

Seems like I have to specify ES\_JVM\_OPTIONS environment variable.

[https://www.elastic.co/guide/en/elasticsearch/reference/5.5/breaking\_50\_packaging.html#\_jvm\_options](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/breaking_50_packaging.html#_jvm_options)  
Documentation snippet:  
The default location for this file is in config/jvm.options if installing from the tar or zip distributions, and /etc/elasticsearch/jvm.options if installing from the Debian or RPM packages. You can specify an alternative location by setting the environment variable ES\_JVM\_OPTIONS to the path to the file.

Radovan

---

<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 26, 2017, 6:15am UTC](https://discuss.elastic.co/t/elasticsearch-ignores-jvm-options-file-not-in-default-folder/98629/3 "2017-09-26T06:15:29Z")

</div>

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