2 Replies Latest reply on Jun 12, 2012 3:27 PM by David Pugh

    Configuring JMX with VisualVM Using Jboss 7

    David Pugh Newbie

      Hello, I am having a problem.

      I am using visualvm to analyze my projects that I have running on jboss 7.

      In order to use the sampler section of visualvm visualvm has to make a JMX connection to jboss.

       

      I have JMX set up properly. I know this because I have user interfaces set up to make remote JMX mbean calls. These are functioning properly.

       

      I tried adding a JMX connection to my server through visual vm.  I tried making the connection the same way I make remote JMX mbean calls.

       

      The security credentials are the same that allow me to make my remote JMX mbean calls successfully.

       

      I blacked out our server's hostname for security reasons.

       

      error1.bmp

      error2.bmp

       

      This is the error message that was in my server logs when I tried to set up JMX for visualvm:

       

      2012-06-11 15:59:55,960 ERROR [org.jboss.remoting.remote.connection] JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of -2140864253

       

      I also tried the more simplified way of creating a jmx connection with visualvm as such:

       

      error3.bmp

      error4.bmp

      And the Jboss logs gave me:

      2012-06-11 16:19:15,418 ERROR [org.jboss.remoting.remote.connection] JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of -2140864253

       

       

      In order to get JMX mbeans to work properly I had to add jboss-client.jar to the project that was trying to make the remote JMX mbean call.

      Is it possible that VisualVM is just not set up to make the call since its not using jboss-client.jar. (might be a silly question).

       

      Please help.

       

      David