cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [1/3] git commit: Add new GC Log Rotation options to cassandra-env.sh patch by Jeremiah Jordan; reviewed by jbellis for CASSANDRA-5319
Date Mon, 11 Mar 2013 22:19:52 GMT
Add new GC Log Rotation options to cassandra-env.sh
patch by Jeremiah Jordan; reviewed by jbellis for CASSANDRA-5319


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/09ee5db7
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/09ee5db7
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/09ee5db7

Branch: refs/heads/cassandra-1.2
Commit: 09ee5db7351cc8bbd87333716cd5ad111eb687ce
Parents: b5f1726
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Mon Mar 11 17:19:36 2013 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Mon Mar 11 17:19:36 2013 -0500

----------------------------------------------------------------------
 conf/cassandra-env.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/09ee5db7/conf/cassandra-env.sh
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh
index 462244c..f98bdb8 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"


Mime
View raw message