I used rpm installation for elasticsearch.Now i want to enable heap dump file in certain path.but please explain me what is the advantage of elasticsearch.in.sh file in bin folder.i am starting es using /etc/init.d/elasticsearch start.I checked the elasticsearch script but in that we are calling elasticsearch file in bin directory so please explain me what is the advantage of elasticsearch.in.sh file.do we need to define memory limits in this file eventhough it is defined in sysconfig file?
You should consider to uncomment and use the ES_JAVA_OPTS environment variable defined in /etc/sysconfig/elasticsearch file (/etc/default/elasticsearch for Debian based distributions):
This env var can be used to define external Java options on top of the defaults set. The /etc/sysconfig/elasticsearch file is sourced by the init.d script.
The bin/elasticsearch.in.sh file is usually modified when elasticsearch in installed with a tar gz package.
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.