Created
August 22, 2018 23:21
-
-
Save dubcl/4b77584a839962859c93b4fc036f8cb0 to your computer and use it in GitHub Desktop.
Kafka enable JMX and set java heap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export JMX_PORT=${JMX_PORT:-9999} | |
export KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=<IP ADDRESS> -Djava.net.preferIPv4Stack=true" | |
export KAFKA_HEAP_OPTS="-Xmx6G -Xms6G" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment