Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

can not connect to cq instance by jconsole.exe tool

Avatar

Level 4

Hi Guys,

Below is the jvm parameters for jconsole configuration in my cq6.1 instance.

But I don't know why I still can not connect by jconsole.exe tool.

Our server is Linux server and jdk1.8. I checked the server firewall, network, port that is working fine. I guss it is due to something wrong on jvm config.

Did I miss some parameters for jvm or miss any configuration on linux server?

-Dcom.sun.management.jmxremote.port=9998

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=172.26.1.50

FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[172.26.1.50:36458](remote),objID:[-210ab23f:153361eec0c:-7fff, 1248576269067317853]]]]] closing.
Mar 02, 2016 2:59:14 PM RMIConnector connect
FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[172.26.1.50:36458](remote),objID:[-210ab23f:153361eec0c:-7fff, 1248576269067317853]]]]] connecting...
Mar 02, 2016 2:59:14 PM RMIConnector connect
FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[172.26.1.50:36458](remote),objID:[-210ab23f:153361eec0c:-7fff, 1248576269067317853]]]]] finding stub...
Mar 02, 2016 2:59:14 PM RMIConnector connect
FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[172.26.1.50:36458](remote),objID:[-210ab23f:153361eec0c:-7fff, 1248576269067317853]]]]] connecting stub...
Mar 02, 2016 2:59:14 PM RMIConnector connect
FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[172.26.1.50:36458](remote),objID:[-210ab23f:153361eec0c:-7fff, 1248576269067317853]]]]] getting connection...
Mar 02, 2016 2:59:16 PM RMIConnector connect
FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[172.26.1.50:36458](remote),objID:[-210ab23f:153361eec0c:-7fff, 1248576269067317853]]]]] failed to connect: java.rmi.ConnectException: Connection refused to host: 172.26.1.50; nested exception is:
 java.net.ConnectException: Connection refused: connect
java.rmi.ConnectException: Connection refused to host: 172.26.1.50; nested exception is:
 java.net.ConnectException: Connection refused: connect
 at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
 at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
 at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
 at sun.rmi.server.UnicastRef.invoke(Unknown Source)
 at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
 at javax.management.remote.rmi.RMIConnector.getConnection(Unknown Source)
 at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
 at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:355)
 at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:313)
 at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:294)
Caused by: java.net.ConnectException: Connection refused: connect
 at java.net.DualStackPlainSocketImpl.connect0(Native Method)
 at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
 at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
 at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.<init>(Unknown Source)
 at java.net.Socket.<init>(Unknown Source)
 at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
 at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
 ... 10 more

2 Replies

Avatar

Employee Advisor

The error message ("connection refused") pretty much indicates a networking problem. Double-check the remote host and the port, and also make sure, that it's not blocked via firewall. Then check that the java on the remote side has opened this port too.

Jörg