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..