2010-02-08 08:30:06 -05:00
|
|
|
CLASSPATH=$CLASSPATH:$ES_HOME/lib/*
|
|
|
|
|
2010-05-01 08:55:49 -04: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=" \
|
2010-05-01 08:55:49 -04:00
|
|
|
-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"
|