6 Replies Latest reply on Mar 19, 2013 8:06 AM by paul.h

    JMX and Fuse ESB 7.1.0

    paul.h

      Hello!

       

      I can't remote connect to fuse esb over jmx using jvisualvm. Please tell me, how to do it?

       

      Fuse ESB 7.1.0 with default configuration.

       

      In my linux instance:

      1) netstat -an | grep 1099

      tcp        0      0 0.0.0.0:1099                0.0.0.0:*                   LISTEN

      tcp        0      0 0.0.0.0:10990               0.0.0.0:*                   LISTEN

       

      2) iptables -L

      Chain INPUT (policy ACCEPT)

      target     prot opt source               destination

      Chain FORWARD (policy ACCEPT)

      target     prot opt source               destination

      Chain OUTPUT (policy ACCEPT)

      target     prot opt source               destination

       

      I can connect to 1099 port from my windows machine, for example it's works:

      telnet 192.168.219.128 1099

       

      jvisualvm screenshots in attachment.

        • 1. Re: JMX and Fuse ESB 7.1.0
          ffang

          Hi,

           

          By default the JMX URL should be

          service:jmx:rmi:///jndi/rmi://hostname:1099/karaf-root

          And it need authentication

           

          Edit $FUSE_ESB/etc/users.properties, uncomment "admin=admin,admin", so that you have username/password "admin/admin"

           

          Freeman

          • 2. Re: JMX and Fuse ESB 7.1.0
            paul.h

            Hello,

            Thanks for reply.

             

            I already edited this file and restart fuse esb, but it didn't help me.

             

            users.properties:

            ....

            admin=admin,admin

             

            org.apache.karaf.management.cfg:

            rmiRegistryPort = 1099

            rmiRegistryHost = 0.0.0.0

            rmiServerPort = 44444

            jmxRealm = karaf

            serviceUrl = service:jmx:rmi://0.0.0.0:$/jndi/rmi://$:$/karaf-${karaf.name}

            daemon = true

            threaded = true

            objectName = connector:name=rmi

            #jmxRole=admin

            • 3. Re: JMX and Fuse ESB 7.1.0
              ffang

              Hi,

               

              How about using jconsole, does it work?

               

              How about using

              service:jmx:rmi://hostname:44444/jndi/rmi://hostname:1099/karaf-root

              instead?

               

              Freeman

              • 4. Re: JMX and Fuse ESB 7.1.0
                paul.h

                Unsuccessfully See attachments.

                • 5. Re: JMX and Fuse ESB 7.1.0
                  mcox

                  This seems to work for me:

                   

                  service:jmx:rmi://0.0.0.0:44444/jndi/rmi://hostname:1099/karaf-root

                  • 6. Re: JMX and Fuse ESB 7.1.0
                    paul.h

                    But not work for me

                     

                    netstat -an | grep 44444

                    tcp        0      0 0.0.0.0:44444               0.0.0.0:*                   LISTEN

                     

                    I try telnet 192.168.219.128 1099 and it's also works, but I can't connect.