1 Reply Latest reply on Jun 5, 2014 4:33 AM by rameshkumar.junnuru

    Unable to Connect jmx port using Visual VM

    rameshkumar.junnuru

      Hi All,

      I am trying to collect the graphical report using Visual VM from my Desktop to connecting remote Jboss Application Server where i am getting below Error Message

      "Can not connect 10.12.10.92:7200 using service:jmx:rmi///jndi:rmi://10.12.10.92:7200/jmxrmi" can you pleas help me how i can resolve the issue.

       

      Jboss Version 5.1

      Java Version 1.6.0_29

       

      Following are Jboss Application Server startup arguments

       

      Process 1

      /bin/sh /infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/bin/run.sh -classpath /infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/bin/run.jar:/infinys/3.0/install/apps/java/jdk1.6.0_29/lib/tools.jar:/infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/lib/jboss-system-jmx.jar org.jboss.Main -c Infinys -b 0.0.0.0

       

      Process 2

      /infinys/3.0/install/apps/java/jdk1.6.0_29/bin/java -Dprogram.name=run.sh -server -Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -Xloggc:/u2/cable/envs/idlft6000/Infinys/server/Infinys/log/GC_server.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/u2/cable/envs/idlft6000/Infinys/HeapDump/error_heap_dump.bin -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7200 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.password.file=/u2/cable/envs/idlft6000/Infinys/server/jmx/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/u2/cable/envs/idlft6000/Infinys/server/jmx/jmxremote.access -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/lib/endorsed -Djboss.server.name=Infinys -Dremoting.bind_by_host=true -Djava.rmi.server.hostname=localhost -Dmy.sfsb.home.loadbalance.policy=org.jboss.ha.framework.interfaces.RoundRobin -Dmy.sfsb.bean.loadbalance.policy=org.jboss.ha.framework.interfaces.RandomRobin -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djboss.server.base.dir=/u2/cable/envs/idlft6000/Infinys/server -Djboss.server.base.url=file:/u2/cable/envs/idlft6000/Infinys/server -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/lib/endorsed -classpath /infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/bin/run.jar:/infinys/3.0/install/apps/java/jdk1.6.0_29/lib/tools.jar org.jboss.Main -classpath /infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/bin/run.jar:/infinys/3.0/install/apps/java/jdk1.6.0_29/lib/tools.jar:/infinys/3.0/install/apps/jb512/jboss-eap-5.1/jboss-as/lib/jboss-system-jmx.jar org.jboss.Main -c Infinys -b 0.0.0.0

       

      defined jmxremote port is listening as well

       

      bash-3.2$ netstat -na | grep 7200

      tcp        0      0 0.0.0.0:7200                0.0.0.0:*                   LISTEN

      tcp        0   1297 10.12.10.92:7200            10.235.31.16:4634           ESTABLISHED

      bash-3.2$ netstat -na | grep 6060

      tcp        0      0 0.0.0.0:6060                0.0.0.0:*                   LISTEN

      tcp        0      0 10.12.10.92:6060            10.235.31.16:4997           FIN_WAIT2

      tcp        0      0 10.12.10.92:6060            10.235.31.16:1049           ESTABLISHED

      tcp        0      0 10.12.10.92:6060            10.235.31.16:4967           TIME_WAIT

      tcp        0      0 10.12.10.92:6060            10.235.31.16:4942           TIME_WAIT

      bash-3.2$

       

      Even i tried with the port 6060 to connect but same message i am getting. Here 6060 is the defined jboss admin console port.

       

      In jboss-service.xml i did the following changes as well. Before the change they were commented.. So i have uncomment them and restarted the Jboss Application Server.

       

      <!-- ==================================================================== -->

         <!-- Monitoring and Management                                            -->

         <!-- ==================================================================== -->

       

         <!-- Uncomment to enable JMX monitoring of the bean cache -->

         <mbean code="org.jboss.monitor.BeanCacheMonitor"

                name="jboss.monitor:name=BeanCacheMonitor"/>

       

         <!-- Uncomment to enable JMX monitoring of the entity bean locking -->

         <mbean code="org.jboss.monitor.EntityLockMonitor"

                name="jboss.monitor:name=EntityLockMonitor"/>

       

      Please help me to sort out the issue..If you need any further information please let me know. I am attaching Jboss Application Server startup log as well.

        • 1. Re: Unable to Connect jmx port using Visual VM
          rameshkumar.junnuru

          I am able to resolve the issue now. I just added and modified few start-up parameters in JAVA_OPTIONS.

           

          -XX:PermSize=256m -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=10.12.10.92 -Djboss.server.name=Infinys -Djboss.server.base.dir=/u2/cable/envs/idlft6000/Infinys/server -Djboss.server.base.url=file:/u2/cable/envs/idlft6000/Infinys/server

           

          After the highlighter changes. restart the Jboss Application Server then i am able to connect through Visual VM remotely.