From e63847f771f86fbd0c20a92f7c75bf44b1f3d5c0 Mon Sep 17 00:00:00 2001 From: kimchy Date: Fri, 15 Oct 2010 18:26:38 +0200 Subject: [PATCH] add hints on when to first perform GC, make small GC happen faster resulting in less chances of stop the world GC --- bin/elasticsearch.in.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/elasticsearch.in.sh b/bin/elasticsearch.in.sh index 3abba0032c3..a8dfb123f30 100644 --- a/bin/elasticsearch.in.sh +++ b/bin/elasticsearch.in.sh @@ -21,5 +21,8 @@ JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC" JAVA_OPTS="$JAVA_OPTS -XX:+CMSParallelRemarkEnabled" JAVA_OPTS="$JAVA_OPTS -XX:SurvivorRatio=8" JAVA_OPTS="$JAVA_OPTS -XX:MaxTenuringThreshold=1" +JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75" +JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly" + JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=$ES_HOME/work/heap"