In ElasticSearch 5.x after October 26, 2016, the old methods for setting the memory size no longer work.
For example: after changing ES_HEAP_SIZE in / etc / default / elasticsearch and in etc / init.d / elasticsearch, if you run
ps aux | grep elasticsearchyou will still get
/usr/bin/java -Xms2g -Xmx2g 2G min and 2G max RAM value
You must make changes to
/etc/elasticsearch/jvm.options
Xms
Xmx , , :
-Xms16g
-Xmx16g
( )
Elasticsearch 5 -Xms2g -Xmx2g