ITコンサルの日常

ITコンサル会社に勤務する普通のITエンジニアの日常です。

HornetQのJMX interfaceにリモートで接続する

run.sh(またはrun.bat)に下記のVM引数を追加。

  • -Dcom.sun.management.jmxremote
  • -Dcom.sun.management.jmxremote.port=3000
  • -Dcom.sun.management.jmxremote.ssl=false
  • -Dcom.sun.management.jmxremote.authenticate=false"

全体の定義

export JVM_ARGS="$CLUSTER_PROPS -XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Dhornetq.config.dir=$RESOLVED_CONFIG_DIR -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=file://$RESOLVED_CONFIG_DIR/logging.properties -Djava.library.path=./lib/linux-i686:./lib/linux-x86_64 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

以下の書式でリモート・プロセスに接続する

service:jmx:rmi:///jndi/rmi://localhost:3000/jmxrmi


接続できた

JMXのリモート接続はハマりどころなので、他の製品でも役に立つかも知れません。