Issue
I am running a standalone kafka broker on an EC2 4GB RAM instance. In the default settings, Kafka is configured to use 1GB memory -Xmx1G -Xms1G
Since the VM has only 4GB memory, is it possible to configure the JVM settings to use 512MB? How should I do that? Will Kafka run properly with 512MB memory or is 1GB the minimum required?
Solution
To set your own JVM heap settings, you just have to export KAFKA_HEAP_OPTS
and Kafka will pick it up when starting.
For example, to set the heap to 512MB, run
export KAFKA_HEAP_OPTS="-Xmx512m -Xms512M"
Answered By - Mickael Maison
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.