roc230 / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

OperationTimeoutException it is thrwon after an inactivity period #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

2.7.1, Linux Redhat5 & Mac OS X 10.6.8
Tell me more...

I'm using this client in a tomcat application in order to operate with membase. 
After I start tomcat, everything works fine. After a period of 20 - 30 minutes 
of server inactivity (the server doesn't receive any request), if I try to 
insert something into membase or extract something from it, I receive an 
OperationTimeoutException. From this moment on, I cannot perform any operation 
because I permanently receive this exception. If I restart the client, 
everything works fine.

I tried to increase the operation timeout and to modify the value of 
TimeoutExceptionThreshold to 3 but without success.

Do you have any solution for this issue?

Thank you

Octavian

Original issue reported on code.google.com by octavr@gmail.com on 27 Oct 2011 at 8:27

GoogleCodeExporter commented 9 years ago
Can you provide the Spymemcached logs?

Original comment by mikewie...@gmail.com on 27 Oct 2011 at 8:42

GoogleCodeExporter commented 9 years ago
Is it possible that something in your network is shutting down idle TCP 
connections?  If so, it may be good to change it's settings to do so with a RST 
packet.  I've seen this in at least one place before.

Original comment by ingen...@gmail.com on 3 Nov 2011 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by ingen...@gmail.com on 3 Nov 2011 at 8:36

GoogleCodeExporter commented 9 years ago
Hello,
The application is running inside of a powerful data-center. So I don't think 
this can be a problem. Anyway I will investigate this.

Original comment by octavr@gmail.com on 7 Nov 2011 at 7:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just a note which might help others, ipchains/iptables has a default idle TCP 
timeout of 900 seconds (15 minutes) which will close any connections, which 
will lead to an:

net.spy.memcached.OperationTimeoutException: Timeout waiting for value

error, there should also be a note in the logs about the connection being 
forcibly closed.  If this is your problem, this is a useful article for 
adjusting the IPCHAINS settings to configure a better timeout.

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.15.8715&rep=rep1&type=p
df

Original comment by d...@ayre.ca on 3 Jun 2015 at 3:21