9 Replies Latest reply on Aug 14, 2011 11:47 PM by smerzlia

    Problem while connecting to remote HornetQ provider using JMX

    m.carbone

      Hi all,

      I have a problem trying to connect a jdk 1.6 jconsole to a remote hornetq 2.2.5 server. I'm trying both the connect strings:

      <host>:<port>

      and

      service:jmx:rmi:///jndi/rmi://<host>:<port>/jmxrmi

       

      Of course, the server run.sh has been modified adding the proper -D parameters:

      "

      ...

      export JMX_PARAMS="-Dcom.sun.management.jmxremote.port=3999  -Dcom.sun.management.jmxremote.ssl=false  -Dcom.sun.management.jmxremote.authenticate=false"

      ...

      java $JVM_ARGS -classpath $CLASSPATH -Dcom.sun.management.jmxremote $JMX_PARAMS org.hornetq.integration.bootstrap.HornetQBootstrapServer $FILENAME

      .."

       

      I'm using an ubuntu 10 server on Amazon EC2 cloud. Firewall has been updated with the new port required.

       

      The problem is that I can't connect.

       

      it takes some time until jconsole says: "connection failed", and in the meanwhile  I can see a tcp connection executing a netstat on my server:

      (3999 is the jmx port being used)

       

      ubuntu@/opt/hornetq-2.2.5.Final/bin$ netstat -an | grep 3999

      tcp6       0      0 :::3999                 :::*                    LISTEN

      tcp6       0      0 x.x.x.208:3999       x.x.60.1:51380      ESTABLISHED

       

      but the connection is transient, soon it disappears.

       

      Nothing... I cant connect via Jconsole. So, what is wrong? is there a better way to open a management console to a remote server?

       

      I come from Tibco, Sonic, Bea and ActiveMQ background, and while considering interesting the whole HornetQ project, I really MISS a better management console....

       

      Please help.

       

      Regards

       

      Michele