简体   繁体   中英

Cannot connect Java Mission Control to remote machine

I am trying to connect JMC to my remote server.

Added the following flags to the the 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:

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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