You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jim Hoagland (JIRA)" <ji...@apache.org> on 2016/10/04 16:00:23 UTC
[jira] [Created] (KAFKA-4249) Document how to customize GC logging
options for broker
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)