kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Hoagland (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-4249) Document how to customize GC logging options for broker
Date Tue, 04 Oct 2016 16:00:23 GMT
Jim Hoagland created KAFKA-4249:
-----------------------------------

             Summary: Document how to customize GC logging options for broker
                 Key: KAFKA-4249
                 URL: https://issues.apache.org/jira/browse/KAFKA-4249
             Project: Kafka
          Issue Type: Improvement
          Components: documentation
    Affects Versions: 0.10.0.1
            Reporter: Jim Hoagland


We wanted to enable GC logging for Kafka broker and saw that you can set GC_LOG_ENABLED=true.
 However, this didn't do what we wanted.  For example, the GC log will be overwritten every
time the broker gets restarted.  It wasn't clear how we could do that (no documentation of
it that I can find), so I did some research by looking at the source code and did some testing
and found that KAFKA_GC_LOG_OPTS could be set with alternate JVM options prior to starting
broker.  I posted my solution to StackOverflow:
  http://stackoverflow.com/questions/39854424/how-to-enable-gc-logging-for-apache-kafka-brokers-while-preventing-log-file-ove
(feel free to critique)

That solution is now public, but it seems like the Kafka documentation should say how to do
this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message