Thanks...So we should prefer to set heap memory in jvm.options.
But consider the case, if someone by mistake has configured in both places and in jvm.options he mentioned 4g heap size but in env variable in elasticsearch file he mentioned ES_HEAP_SIZE=2g..
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.