Elasticsearch ignores jvm.options file not in default folder

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

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
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

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