How to elasticsearch jvm memory tuning

How to/Where is elasticsearch jvm memory tuning value Xms, Xmx?

/opt/graylog/embedded/jre/bin/java -Xms20g -Xmx20g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Djna.nosys=true -server -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=3333 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/opt/graylog/elasticsearch -cp /opt/graylog/elasticsearch/lib/elasticsearch-2.3.1.jar:/opt/graylog/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch start

/opt/graylog/embedded/jre/bin/java -Xms1g -Xmx24g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -jar -Dlog4j.configurationFile=file:///opt/graylog/conf/log4j2.xml -Djava.library.path=/opt/graylog/server/lib/sigar/ -Dgraylog2.installation_source=ova /opt/graylog/server/graylog.jar server -f /opt/graylog/conf/graylog.conf

Elasticsearch memory is currently configured in /etc/elasticsearch/jvm.options

Hi Arie,
thank you for your help. but I use graylog 2.1.1 OVA edition that is not /etc/elasticsearch path and I try to find jvm.options file on my server but not found.

Hello @madieo

Perhaps this might help

Hi gsmith,

thank you for your advise. but I think that I found it at /opt/graylog/sv path

1 Like

Then you must be searching for /etc/sysconfig/elasticsearch

# Heap Size (defaults to 256m min, 1g max)
ES_HEAP_SIZE=8g

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.