tuler tuler - 15 days ago 5x
Java Question

Remote JMX connection

I'm trying to open a JMX connection to java application running on a remote machine.

The application JVM is configured with the following options:

  • com.sun.management.jmxremote

  • com.sun.management.jmxremote.port=1088

  • com.sun.management.jmxremote.authenticate=false

  • com.sun.management.jmxremote.ssl=false

I'm able to connect using
using jconsole or jvisualvm.
But I'm not able to connect using
from a remote machine.

There is no firewall between the servers, or on the OS. But to eliminate this possibility I
telnet xxx.xxx.xxx.xxx 1088
and I think it connects, as the console screen turns blank.

Both servers are Windows Server 2008 x64. Tried with 64-bit JVM and 32-bit, neither work.


Had it been on Linux the problem would be that localhost is the loopback interface, you need to application to bind to your network interface.

You can use the netstat to confirm that it is not bound to the expected network interface.

You can make this work by invoking the program with the system parameter java.rmi.server.hostname="YOUR_IP", either as an environment variable or using

java -Djava.rmi.server.hostname=YOUR_IP YOUR_APP