4 Replies Latest reply on Mar 29, 2013 11:57 AM by Ales Justin

    Can't connect jconsole to remote slave hosts

    nicolas duminil Master

      Hi,

       

      Before posting that I've read every thing I could in this forum on the same topic. But all the posts seem to be for a single host domain like the sample one while, in my case, the topology is as follows:

      • the domain controller runs on a separate host, h0, without any servers on it
      • there are two different hosts, h1 and h2, having each three servers: s1, s2, s3
      • s1 on h1 and s1 on h2 are in the same server group sg1, s2 on h1 and s2 on h2 are in the same server group sg2, etc.
      • The port increment of each server is 100, 200, 300. So the servers s1, s2, s3 run on both hosts h1 and h2 with ports <base>+100, <base>+200 and, respectivelly <base>+300.

      I need to connect jconsole to the servers. Of course: I can remotelly connect it to the domain controller using service:jmx:remoting-jmx://<n0>:9999. But since this node doesn't run any server this doesn't have much added value as I don't see anything:

      So I'm trying to connect to service:jmx:remoting-jmx://<h1>:4547 with an application realm defined user, but the connection fails. there is no any specific error message, it just fails. The same is true for both hosts and all three servers.

      I thought that maybe the host to each I'm supposed to try to connect is always the one running the domain controller. So I tried service:jmx:remoting-jmx://<h0>:4547 but it fails as well.

      Looking on the forum I found out that the domain.xml file hqs to be amended such as to tread:

       

              <subsystem xmlns="urn:jboss:domain:jmx:1.1">
                    <show-model value="true"/>
                    <remoting-connector use-management-endpoint="false"/>
              </subsystem>

       

      And since domain.xml is on the domain controller host, it is there that I modified this file. The remote hosts h1 and h2 don't have any domain.xml config, right ? Do I need to do something in the host.xml of each node ? And the host to be used in the JMX URL is the one running the slave servers and not the one running the domain controller, right ?

      Anyway, I think that all of the posts on the topic of the jconsole connection to JBoss 7.1.3.Final are very confusing as they mention domain controller and managed servers without ever making any difference wether they are on the same host or on different ones.

       

      Many thanks in advance,

       

      Nicolas