Broker garbage log collection and log rotation
Learn more about broker garbage collection and how garbage log rotation can be configured.
Both broker JVM garbage collection and JVM garbage log rotation is enabled by default in the Kafka version delivered with Runtime. Garbage collection logs are written in the agent process directory by default.
Example
path:
/run/cloudera-scm-agent/process/99-kafka-KAFKA_BROKER/kafkaServer-gc.log
Changing the default directory of garbage collection logs is currently not supported. However, you can configure properties related garbage log rotation.
Garbage log rotation properties can be configured with the Kafka Broker Environment Advanced Configuration Snippet (Safety Valve) property.