From 09ee5db7351cc8bbd87333716cd5ad111eb687ce Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Mon, 11 Mar 2013 17:19:36 -0500 Subject: [PATCH] Add new GC Log Rotation options to cassandra-env.sh patch by Jeremiah Jordan; reviewed by jbellis for CASSANDRA-5319 --- conf/cassandra-env.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh index 462244cea5..f98bdb8f85 100644 --- a/conf/cassandra-env.sh +++ b/conf/cassandra-env.sh @@ -216,6 +216,12 @@ fi # JVM_OPTS="$JVM_OPTS -XX:+PrintPromotionFailure" # JVM_OPTS="$JVM_OPTS -XX:PrintFLSStatistics=1" # JVM_OPTS="$JVM_OPTS -Xloggc:/var/log/cassandra/gc-`date +%s`.log" +# If you are using JDK 6u34 7u2 or later you can enable GC log rotation +# don't stick the date in the log name if rotation is on. +# JVM_OPTS="$JVM_OPTS -Xloggc:/var/log/cassandra/gc.log" +# JVM_OPTS="$JVM_OPTS -XX:+UseGCLogFileRotation" +# JVM_OPTS="$JVM_OPTS -XX:NumberOfGCLogFiles=10" +# JVM_OPTS="$JVM_OPTS -XX:GCLogFileSize=10M" # uncomment to have Cassandra JVM listen for remote debuggers/profilers on port 1414 # JVM_OPTS="$JVM_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1414"