I am attempting to connect to a GF server via JMX and I seem to be
having a bit of a problem. The server is installed in the production env
where they have dynamic ip addresses. We have successfully narrowed it
down to something wrong with the configuration of either the computer,
OS, or GF but we are not sure which one, a little vague.
When I run jconsole in debug mode I get this exception:
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested
exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown
Source)
at
javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2312)
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:348)
at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:296)
at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:280)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
or 127.0.1.1 for the ip address if I don't modify the hosts file.
The hosts file basically looks like this
127.0.0.1 localhost
127.0.1.1 HOSTNAME
On a computer where jconsole connects over the network the hosts file
looks like this
127.0.0.1 localhost
192.168.1.1 HOSTNAME
But I can't do this on the server in the prod env because they do
dynamic ip addresses there.
I have tried to modify the domain.xml for the domain but I guess that I
have just not hit the right setting. Can someone please help with this.
I feel like I am that little icon smiley face beating his head on the
brick wall and it is starting to hurt.
Thanks