Sha256: 5da4c813ba75f49407e09c10f9164a66002400523e8e2132ad6ba32393048887
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 KB
Contents
#!/bin/sh ES_CLASSPATH=$ES_CLASSPATH:$ES_HOME/lib/elasticsearch-0.19.10.jar:$ES_HOME/lib/*:$ES_HOME/lib/sigar/* if [ "x$ES_MIN_MEM" = "x" ]; then ES_MIN_MEM=256m fi if [ "x$ES_MAX_MEM" = "x" ]; then ES_MAX_MEM=1g fi if [ "x$ES_HEAP_SIZE" != "x" ]; then ES_MIN_MEM=$ES_HEAP_SIZE ES_MAX_MEM=$ES_HEAP_SIZE fi # min and max heap sizes should be set to the same value to avoid # stop-the-world GC pauses during resize, and so that we can lock the # heap in memory on startup to prevent any of it from being swapped # out. JAVA_OPTS="$JAVA_OPTS -Xms${ES_MIN_MEM}" JAVA_OPTS="$JAVA_OPTS -Xmx${ES_MAX_MEM}" # new generation if [ "x$ES_HEAP_NEWSIZE" != "x" ]; then JAVA_OPTS="$JAVA_OPTS -Xmn${ES_HEAP_NEWSIZE}" fi # max direct memory if [ "x$ES_DIRECT_SIZE" != "x" ]; then JAVA_OPTS="$JAVA_OPTS -XX:MaxDirectMemorySize=${ES_DIRECT_SIZE}" fi # reduce the per-thread stack size JAVA_OPTS="$JAVA_OPTS -Xss256k" # set to headless, just in case JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true" # Force the JVM to use IPv4 stack # JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true" JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC" JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC" JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75" JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly" # When running under Java 7 #JAVA_OPTS="$JAVA_OPTS -XX:+UseCondCardMark" # GC logging options -- uncomment to enable # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails" # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps" # JAVA_OPTS="$JAVA_OPTS -XX:+PrintClassHistogram" # JAVA_OPTS="$JAVA_OPTS -XX:+PrintTenuringDistribution" # JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime" # JAVA_OPTS="$JAVA_OPTS -Xloggc:/var/log/elasticsearch/gc.log" # Causes the JVM to dump its heap on OutOfMemory. JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" # The path to the heap dump location, note directory must exists and have enough # space for a full heap dump. #JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=$ES_HOME/logs/heapdump.hprof"
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
springboard-0.19.10 | lib/springboard/generators/templates/elasticsearch.in.sh |
springboard-0.19.10 | vendor/elasticsearch/bin/elasticsearch.in.sh |