kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maniku...@apache.org
Subject [kafka] branch trunk updated: MINOR: fix incorrect GC log size with JDK9+ (#8800)
Date Tue, 09 Jun 2020 09:24:39 GMT
This is an automated email from the ASF dual-hosted git repository.

manikumar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 58794d2  MINOR: fix incorrect GC log size with JDK9+ (#8800)
58794d2 is described below

commit 58794d2f2eb43fe6debe191b10eb20b7b8093cf9
Author: Xavier Léauté <xvrl@apache.org>
AuthorDate: Tue Jun 9 02:23:40 2020 -0700

    MINOR: fix incorrect GC log size with JDK9+ (#8800)
    
    Author: Xavier Léauté <xavier@confluent.io>
    
    Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>,
Manikumar Reddy <manikumar.reddy@gmail.com>
---
 bin/kafka-run-class.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh
index 270f0e4..95f1a3b 100755
--- a/bin/kafka-run-class.sh
+++ b/bin/kafka-run-class.sh
@@ -297,7 +297,7 @@ if [ "x$GC_LOG_ENABLED" = "xtrue" ]; then
   # We need to match to the end of the line to prevent sed from printing the characters that
do not match
   JAVA_MAJOR_VERSION=$("$JAVA" -version 2>&1 | sed -E -n 's/.* version "([0-9]*).*$/\1/p')
   if [[ "$JAVA_MAJOR_VERSION" -ge "9" ]] ; then
-    KAFKA_GC_LOG_OPTS="-Xlog:gc*:file=$LOG_DIR/$GC_LOG_FILE_NAME:time,tags:filecount=10,filesize=102400"
+    KAFKA_GC_LOG_OPTS="-Xlog:gc*:file=$LOG_DIR/$GC_LOG_FILE_NAME:time,tags:filecount=10,filesize=100M"
   else
     KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails
-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10
-XX:GCLogFileSize=100M"
   fi


Mime
View raw message