[ 
https://issues.apache.org/jira/browse/KAFKA-4249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056109#comment-16056109
 ] 

ASF GitHub Bot commented on KAFKA-4249:
---------------------------------------

GitHub user tombentley opened a pull request:

    https://github.com/apache/kafka/pull/3386

    KAFKA-4249: Document how to customize GC logging options for broker

    Document the KAFKA_GC_LOG_OPTS environment variable as well as the
    common `kafka-run-class.sh` options.
    
    The contribution is my original work and I license the work to the project 
under the project's open source license.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tombentley/kafka KAFKA-4249

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3386.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3386
    
----
commit e7b95ae04a7c833aa66efdc75397c36ede5ad1b2
Author: Tom Bentley <[email protected]>
Date:   2017-06-20T17:12:01Z

    KAFKA-4249: Document how to customize GC logging options for broker
    
    Document the KAFKA_GC_LOG_OPTS environment variable as well as the
    common `kafka-run-class.sh` options.

----


> 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.4.14#64029)

Reply via email to