[
https://issues.apache.org/jira/browse/CASSANDRA-5319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596808#comment-13596808
]
Jeremiah Jordan edited comment on CASSANDRA-5319 at 3/8/13 4:33 AM:
--------------------------------------------------------------------
The docs on that page had the option names wrong. New patches with correct
option names.
{noformat}
# 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"
{noformat}
was (Author: jjordan):
The docs on that page had the option names wrong. New patches with correct
option names.
# 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"
> Add new GC Log Rotation options to cassandra-env.sh
> ---------------------------------------------------
>
> Key: CASSANDRA-5319
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5319
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Jeremiah Jordan
> Priority: Trivial
> Attachments: CASSANDRA-5319-1.1.diff, CASSANDRA-5319-1.2.diff,
> CASSANDRA-5319-trunk.diff
>
>
> JDK u34 and later added built in GC log rotation:
> http://www.oracle.com/technetwork/java/javase/2col/6u34-bugfixes-1733379.html
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6941923
> 1) -XX:+UseGCLogRotation must be used with
> -Xloggc:<filename>
> 2) -XX:NumberOfGClogFiles=<number of files> must be >=1, default is one
> 3) -XX:GCLogFileSize=<number>M (or K) default will be set to 512K
> if UseGCLogRotation set and -Xloggc gives file name, do Log rotation, depends
> on other flag settings.
> if NumberOfGClogFiles = 1, using same file, rotate log when reaches file
> capicity (set by GCLogFileSize) in <filename>.0
> if NumberOfGClogFiles > 1, rotate between files <filename>.0, <filename>.1,
> ..., <filename>.n-1
> We should add these to the commented out gc logging options in
> cassandra-env.sh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira