简体   繁体   English

无法将Java Mission Control连接到远程计算机

[英]Cannot connect Java Mission Control to remote machine

I am trying to connect JMC to my remote server. 我正在尝试将JMC连接到我的远程服务器。

Added the following flags to the the JVM: 向JVM添加了以下标志:

-Dcom.sun.management.jmxremote.port=7000 
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false

Opened port 7000 in my firewall, but everytime I try to connect from JMC, I get the following error: 在防火墙中打开了端口7000,但是每次尝试从JMC连接时,都会出现以下错误:

Could not connect to Prod : Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.io.EOFException]

Can't seem to get this working, I have tried to add another flag: 似乎无法正常工作,我尝试添加另一个标志:

-Dcom.sun.management.jmxremote.rmi.port=7000

But it did not help. 但这没有帮助。

Any help will be appreciated.. 任何帮助将不胜感激..

The flags seem to be correct. 标志似乎是正确的。 Probably the issue is related to firewall. 该问题可能与防火墙有关。 Have you tried without the firewall? 您是否尝试过没有防火墙? If it still doesn't work, you can try the following: 如果仍然无法使用,您可以尝试以下方法:

-Dcom.sun.management.jmxremote.autodiscovery=true

and the connection will show up automatically in JMC, if you are on the same network. 如果您在同一网络上,则连接将在JMC中自动显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM