Skip to content

Commit 6971af8

Browse files
committed
add commented out gc logging option
1 parent 286a6fa commit 6971af8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/elasticsearch.in.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ JAVA_OPTS="$JAVA_OPTS -XX:MaxTenuringThreshold=1"
3434
JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75"
3535
JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly"
3636

37+
# GC logging options -- uncomment to enable
38+
# JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
39+
# JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps"
40+
# JAVA_OPTS="$JAVA_OPTS -XX:+PrintClassHistogram"
41+
# JAVA_OPTS="$JAVA_OPTS -XX:+PrintTenuringDistribution"
42+
# JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime"
43+
# JAVA_OPTS="$JAVA_OPTS -Xloggc:/var/log/elasticsearch/gc.log"
44+
3745
# Causes the JVM to dump its heap on OutOfMemory.
3846
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError"
3947
# The path to the heap dump location, note directory must exists and have enough

0 commit comments

Comments
 (0)