Reputation: 1184
I've never before came across the term "heap size" before. I've done some reading and I came to conclusion that command export KAFKA_HEAP_OPTS="-Xmx16G -Xms16G"
would result in 16GB heap size.
I know that default size should be 512MB, but how can I check settings on the running Kafka server? Is checking the config file the only way to find out what are the current settings?
Upvotes: 0
Views: 2192
Reputation: 191864
default size should be 512MB
In Kafka, it's actually 1G, by default.
You can look at the running processes on the machine, such as ps aux | grep KafkaServer
on Unix, and look at the Xmx
for max heap...
For finding current heap usage (over time), you'll need to hook up JVM monitoring tools like Prometheus JMX exporter.
Upvotes: 1