How to enable remote JMX on Kafka brokers (for JmxTool)?

前端 未结 8 2187
孤独总比滥情好
孤独总比滥情好 2020-12-05 02:51

I enabled JMX on Kafka brokers by adding

KAFKA_JMX_OPTS=\"-Dcom.sun.management.jmxremote=true
                -Dcom.sun.management.jmxremote.authenticate=fa         


        
8条回答
  •  既然无缘
    2020-12-05 03:27

    You must set 'JMX_PORT' variable, or add the following line to bin/kafka-server-start.sh.

    export JMX_PORT=${JMX_PORT:-9999}
    

    then you will be able to connect to Kafka JMX metrics. I use jconsole tool and 'localhost:9999' address.

提交回复
热议问题