cs0815
cs0815

Reputation: 17388

increase memory size elasticsearch

Just wondering, where/how do I run:

ES_JAVA_OPTS="-Xms16G -Xmx16G" ./bin/elasticsearch

to increase the memory please? I tried to put this into the startup batch

Upvotes: 0

Views: 151

Answers (1)

Val
Val

Reputation: 217274

The best way to achieve this is to modify the first section of the config/jvm.options file

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms16g
-Xmx16g

Upvotes: 1

Related Questions