OpenSearch/bin/elasticsearch.in.sh

20 lines
478 B
Bash
Raw Normal View History

CLASSPATH=$CLASSPATH:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*
2010-02-08 08:30:06 -05:00
if [ "x$ES_MIN_MEM" = "x" ]; then
ES_MIN_MEM=256
fi
if [ "x$ES_MAX_MEM" = "x" ]; then
ES_MAX_MEM=1024
fi
2010-02-08 08:30:06 -05:00
# Arguments to pass to the JVM
JAVA_OPTS=" \
-Xms${ES_MIN_MEM}m \
-Xmx${ES_MAX_MEM}m \
2010-02-08 08:30:06 -05:00
-Djline.enabled=true \
-XX:+AggressiveOpts \
-XX:+UseParNewGC \
-XX:+UseConcMarkSweepGC \
-XX:+CMSParallelRemarkEnabled \
-XX:+HeapDumpOnOutOfMemoryError"