posts - 495,comments - 227,trackbacks - 0
http://www.iteye.com/topic/778425

连接远程进程时,需要输入ip和port。
其中ip查看方式:
-Djava.rmi.server.hostname=10.27.5.139
port查看方式:
-Dcom.sun.management.jmxremote.port=8888

另远程jvm的设置方式,加入:
-Djava.rmi.server.hostname=10.27.5.139
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8888
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
其中设置ip和port即可。

今天装了台activemq5 Jms服务器,打算用本地jconsole 通过jmx连接到amq,总是失败;
检查了一下bin下的activemq脚本,里面配置如下:
if [ -z "$SUNJMX" ] ; then
SUNJMX="-Dcom.sun.management.jmxremote.port=9999 -
Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
fi
应该没有问题
随后检查了conf下activemq.xml
broker 已经设置了 useJmx="true"
依然无法访问;
最后修改了一下/etc/hosts,将ip加了进去就可以了
或者修改SUNJMX参数增加:
-Djava.rmi.server.hostname=ip 项,也可以远程连接
posted on 2012-12-14 14:48 SIMONE 阅读(5161) 评论(0)  编辑  收藏 所属分类: JAVA

只有注册用户登录后才能发表评论。


网站导航: