Questions tagged [spymemcached]

Spymemcached is a single-threaded, asynchronous memcached client written in java.

182 questions
2
votes
1 answer

prevent conflict with spymemcached

I'm trying to use spymemcached 2.6 with synchronization on update and I found the two following way to use it: using CASMutation defining a CASMutator which is quite an invasive way to implement it, let see an example: public List
terry
  • 133
  • 1
  • 12
2
votes
0 answers

gwhalin memcached java client set object size > 1 MB increase slab size

I am using com.whalin/Memcached-Java-Client library version 3.0.2. Default slab size is 1 MB and I have used -I command to start memcached server - memcached -d -u nobody -m 4096 127.0.0.1 -p 11211 -I 5242880. Memcached server version is 1.4.26. I…
Santosh
  • 782
  • 4
  • 15
  • 38
2
votes
1 answer

too many http sessions with grails and memcached-session-store

I am a litle bit lost here. I am using a grails application deployed in tomcat with memcached-session-store. That it uses spymemcached. I am also using melody plugin to monitor the app. In the righter-upper part, there is a http-sessions graph that…
user2427
  • 7,842
  • 19
  • 61
  • 71
2
votes
1 answer

Storing large objects in Memcached

I'm storing an object of size 7-10MB in Memcached and just after putting the object, trying to retrieve it. I get cache misses in that case. Any idea why? This solution works for smaller object sizes. Background Info: I'm using Memcached to store a…
user1271286
  • 333
  • 5
  • 14
2
votes
1 answer

Spymemcached issue with 2 nodes configured

I am using Ketama algorithm's spymemcached for my project. I do have two memcached servers running as part of HA (high availability) and my configurations…
Vishwa
  • 607
  • 2
  • 11
  • 21
2
votes
1 answer

Timeout in grails application with memcached(ElastiCache) on heavy load and big cache files

I have a grails application that using memcached to store requests results all times. On request where result stored in cache is small(100kb) works fine with 50K requests, but in one case, where the result is aproximally 800kb the application throw…
2
votes
2 answers

JUnit testing Spymemcached client

I have a class which wraps around spymemcached client and I would like to write some JUnit tests to test if the getValue and addKey methods work or not. The problem is that the spymemcached server is not reachable from the test server so I guess…
Z T
  • 543
  • 1
  • 7
  • 26
2
votes
1 answer

Spymemcached client auto-reconnect to another server in Couchbase Cluster?

I read Couchbase Rebalancing document (http://blog.couchbase.com/rebalancing-couchbase-part-i) and it wrote : "A client losing its connection to the cluster will attempt to reestablish (configurable). Anytime it reconnects (first time or not) it…
consoko
  • 87
  • 5
2
votes
1 answer

How to use simple-spring-memcached with AWS Auto Discovery

How to use simple-spring-memcached library (SSM) with AWS Elasti Cache Auto Discovery feature? We are using spymemcached as client.
2
votes
1 answer

memcached entry expiration set to 0

Does memcached entries with expiry time set to 0 not expire - as mentioned in the PHP Memcached docs, but not mentioned in the memcached protocol spec? I am using spymemcached client and the docs for spymemcached does not say anything about it…
tbaker
  • 43
  • 1
  • 5
2
votes
4 answers

Memcached - Connection refused

I tried a simple test with memcached from jelastic and always getting the exception "COnnection refused"... But the URL ist correct. Is some add MemcachedClient c = new MemcachedClient( new…
Rookee
  • 611
  • 2
  • 7
  • 17
2
votes
0 answers

How to make memcached access time faster

I have stored some value in the memcachedClient . when i try to fetch it using get method it take some random time each time when execute Like 30 ms or 70 ms. Here is the code how i am trying to measure the time long l1, l2, l3, l4, l5,…
navin kumar
  • 191
  • 3
  • 6
  • 16
2
votes
1 answer

how to change the port number of the memcached server other than 11211

I wanted to have two instance of the memcachedClient on the same set of the servers , so I can store one set of keys on the fisrt client1 and the other on the second client.So nI am declaring the two instance like MemcachedClient client1 =new…
navin kumar
  • 191
  • 3
  • 6
  • 16
2
votes
1 answer

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

I am storing Set of values into the memcached client with key as setOfKeys. I am putting the value in the memcached as follows Set keys=new HashSet(); mMemcachedClient = new MemcachedClient(new BinaryConnectionFactory(), …
navin kumar
  • 191
  • 3
  • 6
  • 16
2
votes
2 answers

CouchbaseClient vs MemcachedClient

I am wondering what are advantages of using one client over another. Is there possibility to use MemcachedClient to connect to client side Moxi instance?
tropikalista
  • 1,629
  • 3
  • 19
  • 35