Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3754

Kafka default -Xloggc settings should include GC log rotation flags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.11.0.0
    • None
    • None

    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

      Attachments

        Issue Links

          Activity

            People

              Ryan P Ryan P
              Ryan P Ryan P
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: