Remote JMX Technology

走远了吗. 提交于 2019-12-12 10:28:50

问题


anybody work on Remote Monitoring in java (JMX). I have to monitor Remote Tomcat instance on Linux system and i need to monitor on local window machine. i am accessing Remote Tomcat using Putty through VPN. Please help..

I have tried by give jmx port in catalina.sh file of tomcat with variable JAVA_OPT and further tunneling in Putty ,but i m not able to access via localhost with port , also by using service jmx command. please help !!!

Thanks for your time and support in advance ..


回答1:


Remote JMX needs two ports to operate properly. And the second one (the RMI registry port) is by default picked randomly causing problems with firewalls etc.

Since JDK7u4 you can use

-Dcom.sun.management.jmxremote.rmi.port=<port>

to set the RMI port to be used.

See this blog for more detailed steps.



来源:https://stackoverflow.com/questions/19442719/remote-jmx-technology

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!