8 Replies Latest reply on Feb 14, 2012 6:29 AM by sewatech

    Server port with Jconcole on AS 7.1

    sewatech

      Hi,

       

      I've just discovered the new way to connect the jconsole to JBoss AS 7.1.

      Now, we have to connect to the native management port (9999). But I do not see a server port anymore. Are we back to an anonymous port ? Or is 9999 the server port too ?

       

      Thanks.

        • 1. Re: Server port with Jconcole on AS 7.1
          dlofthouse

          What do you mean by server port?

          • 2. Re: Server port with Jconcole on AS 7.1
            sewatech

            In AS 7.0, we had 2 ports

            - jmx-connector-registry = 1090

            - jmx-connector-server = 1091

             

            Port 9999 replaces the jmx-connector-registry port.

            By server port, I mean the replacement for jmx-connector-server.

            • 3. Re: Server port with Jconcole on AS 7.1
              dlofthouse

              Ok I understand - no only port 9999 is now needed and used.

               

              TBH I didn't dig too closely into the old impl but in general where services have two ports that is so a client can connect to one port to download a stub that is then used to connect to the second port, now that we use Remoting the JMX URL contains everything needed to connect to the server.

              • 4. Re: Server port with Jconcole on AS 7.1
                sewatech

                OK, I've tested with a firewall, it's working fine. And -Djava.rmi.server.hostname system property is no more useful with a NAT. It's simply working.

                 

                That's great. Thanks.

                • 5. Re: Server port with Jconcole on AS 7.1
                  andeisen

                  Is it correct that there is no possibility to connect to a (remote) JBoss 7.0.2 server over JConsole, as this feature is only available in JBoss 7.1?

                  • 6. Re: Server port with Jconcole on AS 7.1
                    sewatech

                    No, jconsole acces was already implemented in 7.0.2.

                     

                    You should check that your config contains the following section :

                            <subsystem xmlns="urn:jboss:domain:jmx:1.0">
                                <jmx-connector server-binding="jmx-connector-server" registry-binding="jmx-connector-registry"/>
                            </subsystem>
                    

                     

                    And that one :

                            <socket-binding name="jmx-connector-registry" port="1090" interface="management"/>
                            <socket-binding name="jmx-connector-server" port="1091" interface="management"/>
                    
                    • 7. Re: Server port with Jconcole on AS 7.1
                      andeisen

                      Hi,

                       

                      thanks for your reply.

                      My standalone.xml includes the 2 parts you mentioned above. The management interface is bound to the server's hostname, native management and http management interface have same hosts. I can access the http management console without problems.

                      But if I try to connect with jconsole, the connection can't be established. I try to connect with the connection string

                      service:jmx:remoting-jmx://{host_name}:{port}

                      which I found in a JBoss manual ( https://community.jboss.org/wiki/UsingJconsoleToConnectToJMXOnAS7 ).

                      Am I missing something?

                      • 8. Re: Server port with Jconcole on AS 7.1
                        sewatech

                        That's a manual page for AS 7.1 final. The jconsole access has changed a lot after CR1b.

                        You have an older version, so you should try with {host_name}:1090 in your jconsole.