[
https://issues.apache.org/jira/browse/KAFKA-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300926#comment-15300926
]
ASF GitHub Bot commented on KAFKA-3754:
---------------------------------------
GitHub user rnpridgeon opened a pull request:
https://github.com/apache/kafka/pull/1431
KAFKA-3754 Add GC log retention policy to limit size of log
Add a default log retention policy to keep GC logs from growing too large
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rnpridgeon/kafka KAFKA-3754
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/1431.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1431
----
commit 9732f5fe45ce35d32783669683ac65ac34e4c889
Author: Ryan P <[email protected]>
Date: 2016-05-25T21:48:08Z
Add GC log retention policy to limit size of log
----
> Kafka default -Xloggc settings should include GC log rotation flags
> -------------------------------------------------------------------
>
> Key: KAFKA-3754
> URL: https://issues.apache.org/jira/browse/KAFKA-3754
> Project: Kafka
> Issue Type: Bug
> Reporter: Ryan P
> Assignee: Ryan P
> Priority: Minor
>
> By default kafka-run-class.sh defines it's GC settings like so:
> KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc
> -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps "
> This has to potential to generate incredibly large log files when left
> unmanaged.
> Instead it should include some sort of default GC log retention policy by
> adding the following flags:
> -XX:+UseGCLogFileRotation
> -XX:NumberOfGCLogFiles= <number of files>
> -XX:GCLogFileSize=<size of files>
> http://www.oracle.com/technetwork/java/javase/7u2-relnotes-1394228.html
> details these flags and their defaults
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)