Elasticsearch ignores jvm.options file not in default folder

(Radovan Bičiště) #1

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
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 Bičiště) #2

Seems like I have to specify ES_JVM_OPTIONS environment variable.

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.


(system) #3

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