2010-07-07 10:15:26 -04:00
|
|
|
CLASSPATH=$CLASSPATH:$ES_HOME/lib/elasticsearch-@ES_VERSION@.jar:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*
|
2010-02-08 08:30:06 -05:00
|
|
|
|
2010-05-01 08:55:49 -04:00
|
|
|
if [ "x$ES_MIN_MEM" = "x" ]; then
|
2010-06-30 14:51:34 -04:00
|
|
|
ES_MIN_MEM=256m
|
2010-05-01 08:55:49 -04:00
|
|
|
fi
|
|
|
|
if [ "x$ES_MAX_MEM" = "x" ]; then
|
2010-06-30 14:51:34 -04:00
|
|
|
ES_MAX_MEM=1g
|
2010-05-01 08:55:49 -04:00
|
|
|
fi
|
|
|
|
|
2010-02-08 08:30:06 -05:00
|
|
|
# Arguments to pass to the JVM
|
|
|
|
JAVA_OPTS=" \
|
2010-06-30 14:51:34 -04:00
|
|
|
-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"
|