Hi Parth,

We need to pass JVM system properties to rotate gc logs. These props added
in Kafka 0.11.release.
For releases before 0.11, we need to add these JVM props. Broker restart is
required for changes to take effect.

https://github.com/apache/kafka/blob/trunk/bin/kafka-run-class.sh#L290



On Fri, Nov 30, 2018 at 6:17 PM Parth Gandhi <
parth.gan...@excellenceinfonet.com> wrote:

> Team,
>
> I took over kafka from a colleague and found that the GC log has been setup
> without setting up the log rotate policy. Now the GC log size has reached
> to 4 GB and we need to move this file and also set up a log rotate policy.
> Can this be achieved without restarting the kafak service? We have a kafka
> cluster with 3 broker and will have to set this up on all three servers. I
> am new to Java and any help on this is highly appreciated.
>
> Thanks,
> Parth Gandhi
> DevOps
>
> Disclaimer
>
> The information contained in this communication from the sender is
> confidential. It is intended solely for use by the recipient and others
> authorized to receive it. If you are not the recipient, you are hereby
> notified that any disclosure, copying, distribution or taking action in
> relation of the contents of this information is strictly prohibited and may
> be unlawful.
>
> This email has been scanned for viruses and malware, and may have been
> automatically archived by Mimecast Ltd, an innovator in Software as a
> Service (SaaS) for business. Providing a safer and more useful place for
> your human generated data. Specializing in; Security, archiving and
> compliance. To find out more visit the Mimecast website.
>

Reply via email to