bigdata4u / spymemcached

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

Memcache sets taking unusually long time #313

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
spymemcached version: 2.10.6
operating system : ubuntu 12.04

Tell me more...

I have an application contained within the tomcat engine and simple sets seem 
to be taking long time. There is no load at all on the system. Almost nothing 
happening on it. However, set calls are not returning immediately to the 
application thread. For example:

1) 
long startTime = System.currentTimeMillis();
memcache.set(key, value, expiry). 
long endTime = System.currentTimeMillis();

long total = (endTime - startTime). This is around 10ms.

I was expecting that the set call would be asynchronous and that it would 
return to the application thread immediately. However, it sometimes takes 10ms 
to return to the thread from which the set call is run. 

I am trying to make successive set calls for about 200 objects each with only 
about 100 bytes or so. Some of these objects take around 10-15 ms to return 
from the set
call which is extremely high considering that this is supposed to be
an async. call.

However, when I try to run a standalone application (not within tomcat), where 
I try to do sets and gets of some randomly generated objects which are very 
large in size, this doesn't happen. In fact set calls return within a few 
microseconds.

Any inputs on this problem would be higly appreciated. 

Original issue reported on code.google.com by anir...@thoughtspot.com on 31 Oct 2014 at 5:00

GoogleCodeExporter commented 8 years ago
Any help?

Original comment by anir...@thoughtspot.com on 11 Nov 2014 at 9:19