You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ismael Juma (JIRA)" <ji...@apache.org> on 2017/05/03 09:51:04 UTC
[jira] [Updated] (KAFKA-3754) Kafka default -Xloggc settings should
include GC log rotation flags
[ https://issues.apache.org/jira/browse/KAFKA-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ismael Juma updated KAFKA-3754:
-------------------------------
Description:
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= 10
-XX:GCLogFileSize=100M
http://www.oracle.com/technetwork/java/javase/7u2-relnotes-1394228.html details these flags and their defaults
was:
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
> 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= 10
> -XX:GCLogFileSize=100M
> 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.15#6346)