Installing and configuring Apache Kafka
Also available as:

Java Version

You should use the latest update for Java version 1.8 and make sure that G1 garbage collection support is enabled. (G1 support is enabled by default in recent versions of Java.)

Here are several recommended settings for the JVM:


To set JVM heap size for the Kafka broker, export KAFKA_HEAP_OPTS; for example:

                     export KAFKA_HEAP_OPTS="-Xmx2g -Xms2g"