0 Replies Latest reply on Feb 8, 2016 4:39 PM by Nitin Gupta

    VisualVM 1.3.2 with Remote Jboss JBoss 5.1.0.GA

    Nitin Gupta Newbie

       

      I am trying to connect VisualVM 1.3.2 to a Remote JBoss 5.1.0.GA (on Linux) using a JMX connection. The connection to a local server (Windows) using the same settings works fine.

       

       

       

      I used a run.jar that adds the following platform JMX files

       

      org\jboss\system\server\jmx\LazyMBeanServer.class
      org\jboss\system\server\jmx\MBeanServerBuilderImpl.class

       

       

       

      For Remote Server I Added the following settings -

       

      export RUN_ARGS=" $RUN_ARGS -Dcom.sun.management.jmxremote.authenticate=false"

       

      export RUN_ARGS=" $RUN_ARGS -Dcom.sun.management.jmxremote.ssl=false"

       

      export RUN_ARGS=" $RUN_ARGS -Dcom.sun.management.jmxremote=true"

       

      export RUN_ARGS=" $RUN_ARGS -Dcom.sun.management.jmxremote.port=5004"

       

      export RUN_ARGS=" $RUN_ARGS -Djboss.platform.mbeanserver"

       

      export RUN_ARGS=" $RUN_ARGS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"

         

       

       

      For local server I used the following settings --

       

      set RUN_ARGS= %RUN_ARGS% -Dcom.sun.management.jmxremote.port=5004

       

      set RUN_ARGS= %RUN_ARGS% -Dcom.sun.management.jmxremote.ssl=false

       

      set RUN_ARGS= %RUN_ARGS% -Dcom.sun.management.jmxremote.authenticate=false

       

      set RUN_ARGS= %RUN_ARGS% -Djboss.platform.mbeanserver

       

      set RUN_ARGS= %RUN_ARGS% -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl

       

       

      I do see that the port 5004 is open on the server

       

      NY-COLLINE-4:/opt/Colline/RELEASE_2013_1_BBH/bin # netstat -anp | grep 5004

      tcp        0      0 0.0.0.0:5004            0.0.0.0:*               LISTEN      8065/java