Are you using the service wrapper? The settings look correct. You shouldn't
need to set the min and max since ES_HEAP_SIZE already sets both
automatically.
Using the ES_HEAP_SIZE is reccomended. For the settings to be applied, it
depends on how you launch the Elasticsearch process. The service wrapper
takes this variable into account, as well as the elasticsearch script.
Many provisioning scripts set these values directly in the https://github.com/elasticsearch/elasticsearch/blob/master/bin/elasticsearch.in.sh
file.
The most safe to have this setting applied is to pass it to the environment
when you launch the process:
I do have the service wrapper installed. ES is started with the OS
(Ubuntu). I usually run "sudo service elasticsearch restart" from the
command line. I realized the service wrapper installed a scripte into
/etc/init.d/elasticsearch when i "installed" the service. That file
contained the references to the ES_HEAP_SIZE variable. I set the value in
there and it worked. Not sure why it doesn't with the ENV variable.
Using the ES_HEAP_SIZE is reccomended. For the settings to be applied, it
depends on how you launch the Elasticsearch process. The service wrapper
takes this variable into account, as well as the elasticsearch script.
Many provisioning scripts set these values directly in the < https://github.com/elasticsearch/elasticsearch/blob/master/bin/elasticsearch.in.sh>
file.
The most safe to have this setting applied is to pass it to the
environment when you launch the process:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.