使用JMX监视远程WSO2 ESB [英] Monitor remote WSO2 ESB using JMX

查看:53
本文介绍了使用JMX监视远程WSO2 ESB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Jconsole和JMX监视我的ESB.我可以从本地主机连接到JMX服务器,但要从远程计算机连接到esb,我可以建立连接. 我使用WSO2 ESB 4.6以及carbon.xml文件中的我的JMX configuration.

I want to monitor my ESB using Jconsole and JMX. I can connect to JMX server from the localhost but for connecting from remote machine to my esb I can establish the connection. I use WSO2 ESB 4.6 and this my JMX configuration in carbon.xml file.

<JMX>
        <!--The port RMI registry is exposed-->
        <RMIRegistryPort>9999</RMIRegistryPort>
        <!--The port RMI server should be exposed-->
        <RMIServerPort>11111</RMIServerPort>
</JMX>

推荐答案

我发现了问题,我的rmi服务正在主机IP上运行,该主机IP为"127.0.0.1".要远程连接到jvm,我必须将外部ip绑定到主机名.要在Unix系统中执行此操作,请使用命令hostname获取主机名.然后检查分配给主机名的ip,以找出使用ping $(hostname)的方式,您将看到系统对主机名的ip进行ping操作. 如果您的主机ip是默认的127.0.0.1,并且想要更改它,只需以超级用户身份编辑文件/etc/hosts.重新启动rmi服务后,您可以从远程计算机访问它.

I found the problem, my rmi service was running on the host ip which was "127.0.0.1". To connect remotely to the jvm I had to bind the external ip to the hostname. To do this in unix systems use command hostname to get the name of the hostname. Then check the ip that is assigned to the hostname, to find out this use ping $(hostname) you will see that system is pinging the hosname's ip. If your host ip was the default 127.0.0.1 and you wanted to change it, just edit the file /etc/hosts as superuser. After rebooting the rmi service, you can reach it from the remote machine.

这篇关于使用JMX监视远程WSO2 ESB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆