Monitoring Remote WSO2 ESB Using JMX

I want to control my ESB using Jconsole and JMX. I can connect to the JMX server from the local host, but to connect from a remote computer to my esb, I can establish a connection. I am using WSO2 ESB 4.6 and this JMX configuration file in carbon.xml .

 <JMX> <!--The port RMI registry is exposed--> <RMIRegistryPort>9999</RMIRegistryPort> <!--The port RMI server should be exposed--> <RMIServerPort>11111</RMIServerPort> </JMX> 
0
jmx wso2 wso2esb
Apr 26 '14 at 11:44
source share
2 answers

I found the problem, my rmi service was running on the host IP that was "127.0.0.1". To connect remotely to jvm, I had to bind the external ip to the host name. To do this, on unix systems, use the hostname command to get the hostname. Then check the ip assigned to the host name to find out how to use ping $(hostname) , you will see that the system pings hosname ip. If your host IP address was 127.0.0.1 by default, and you wanted to change it, just edit the / etc / hosts file as root. After restarting the rmi service, you can contact it from a remote machine.

+2
Apr 28 '14 at 10:25
source share

Look at wso2carbon.log, you will find an entry like INFO {org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi {org.wso2.carbon.core.init.JMXServerManager}

Use this URL to connect to the carbon server from a remote JMX client (for example, JVisualVM) and do not forget to specify security credentials (by default, Username / Password is admin / admin)

0
Apr 28 '14 at 7:15
source share



All Articles