Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the problem of jconsole remote connection timeout

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Jconsole remote connection timeout solution, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

According to the documentation on the oracle website, there is no problem with using jconsole locally. But when I connect to linux from windows (centos5.4), I always fail to connect. The reason is that the RMI configuration file given by JVM to jconsole on Linux is incorrect.

Jvm uses the IP address of hostname-I, which is 127.0.0.1 on my / etc/hosts, so the remote is always out of reach.

Just add-Djava.rmi.server.hostname=192.168.0.10 to the java startup parameters to show the IP address that JVM returns to jconsole.

JAVA_OPTS= "- Xms256m-Xmx512m-XX:MaxPermSize=128m-Dcom.sun.management.jmxremote.port=1011-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote.authenticate=false-Djava.rmi.server.hostname=192.168.1.210"

After reading the above, have you mastered the solution to the jconsole remote connection timeout problem? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report