java,net..ConnectionException:Connection Timed out

507 views
Skip to first unread message

Preeti

unread,
Nov 20, 2012, 5:04:08 AM11/20/12
to memcached-se...@googlegroups.com

Hi,
   I am getting this exception. Memcached is running but still when I start tomcat, I am getting ConnectionException. I have pased the exception stack trace below. Please go through and let me know what is going wrong.


java.net.ConnectException: Connection timed out
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:407)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:275)
        at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:2030)
2012-11-20 09:35:52.757 WARN net.spy.memcached.MemcachedConnection:  Closing, and reopening {QA sa=/10.244.151.43:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1.
2012-11-20 09:35:53.075 INFO net.spy.memcached.MemcachedConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@3da1c42f
2012-11-20 09:35:53.076 INFO net.spy.memcached.MemcachedConnection:  Reconnecting due to failure to connect to {QA sa=/10.244.151.43:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}


Regards,
Preeti

Billy Bacon

unread,
Nov 20, 2012, 5:19:35 AM11/20/12
to memcached-se...@googlegroups.com
This typically means that your IP address is incorrect and/or not reachable from your client tomcat apps. Make sure to check firewall rules or security groups if you are in an Amazon AWS environment.

- Billy -

Preeti

unread,
Nov 20, 2012, 7:32:48 AM11/20/12
to memcached-se...@googlegroups.com, billy...@gmail.com

Thank you Billy. There was some problem with security group.

Regards,
Preeti
Reply all
Reply to author
Forward
0 new messages