JconsoleはリモートLinuxのKafkaを監視する

1361 ワード

1、起動パラメータを構成する:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port={port to access}
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname={optional, allow what ip to access this Tomcat}
vi kafka-run-class.sh
KAFKA_JVM_OPTSに上記のパラメータを追加します(画像参照)

-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

2、hostnameコマンドの表示、hostname-iの表示
3、Jconsole入力サービスを開く:jmx:rmi:///jndi/rmi://11.11.11.11:9999/jmxrmi
参照先:
http://www.mkyong.com/tomcat/jconsole-jmx-remote-access-on-tomcat/
http://blog.csdn.net/cyq1984/article/details/5766776
http://linux.ccidnet.com/art/302/20080326/1401805_1.html
http://www.51testing.com/html/38/113838-132703.html