-
1. Re: Server port with Jconcole on AS 7.1
dlofthouse Feb 7, 2012 7:23 AM (in response to sewatech)What do you mean by server port?
-
2. Re: Server port with Jconcole on AS 7.1
sewatech Feb 7, 2012 1:07 PM (in response to dlofthouse)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 Feb 7, 2012 1:18 PM (in response to sewatech)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 Feb 7, 2012 3:59 PM (in response to dlofthouse)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 Feb 14, 2012 4:49 AM (in response to sewatech)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 Feb 14, 2012 5:15 AM (in response to andeisen)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 Feb 14, 2012 5:48 AM (in response to sewatech)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 Feb 14, 2012 6:29 AM (in response to andeisen)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.