OpenSearch/bin/elasticsearch.in.sh

20 lines
475 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=256m
fi
if [ "x$ES_MAX_MEM" = "x" ]; then
ES_MAX_MEM=1g
fi
2010-02-08 08:30:06 -05:00
# Arguments to pass to the JVM
JAVA_OPTS=" \
-Xms${ES_MIN_MEM} \
-Xmx${ES_MAX_MEM} \
2010-02-08 08:30:06 -05:00
-Djline.enabled=true \
-XX:+AggressiveOpts \
-XX:+UseParNewGC \
-XX:+UseConcMarkSweepGC \
-XX:+CMSParallelRemarkEnabled \
-XX:+HeapDumpOnOutOfMemoryError"