Broker garbage collection log configuration
Learn more about broker garbage collection and how garbage collection log rotation can be configured.
Both broker JVM garbage collection log and JVM garbage collection 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 collection log rotation.
Garbage collection log rotation properties can be configured with the Kafka Broker Environment Advanced Configuration Snippet (Safety Valve) property.