Spymemcached is a single-threaded, asynchronous memcached client written in java.
Questions tagged [spymemcached]
182 questions
5
votes
2 answers
spymemcached - is it possible to disable the logging system?
we are using the spymemcached memcached client but we didn't discovered how we could disable the logging system.
How could we at runtime change the current logging system to something like log4j or sl4j?
Notice: We could pass some VM arguments, but…

Kico Lobo
- 4,374
- 4
- 35
- 48
5
votes
1 answer
How to Use memcached on different port
i have excuted c:\memcached>memcached -l 0.0.0.0:11211,0.0.0.0:11212
getaddrinfo(): No such host is known.
failed to listen on TCP port 11211: No error.
and that was the response i got
if i will execute c:\memcached>memcached -p 11211 -d
memcached:…

navin kumar
- 191
- 3
- 6
- 16
5
votes
1 answer
Couchbase: net.spy.memcached.internal.CheckedOperationTimeoutException
I'm loading local Couchbase instance with application specific json objects.
Relevant code is:
CouchbaseClient getCouchbaseClient()
{
List uris = new LinkedList();
uris.add(URI.create("http://localhost:8091/pools"));
…

user1697575
- 2,830
- 1
- 24
- 37
5
votes
2 answers
Using 'incr' with spymemcached client
I am trying set up a very basic hit rate monitor in memcached using the spymemcached-2.8.4 client however the value stored in memcached never actually seems to increment... Is this a bug or am I missing something?
public static void…

travega
- 8,284
- 16
- 63
- 91
4
votes
1 answer
Spymemcached Hanging after Operations Completed
I am using Spymemcached to access Memcached on a server. I started memcached using the following command
memcached -m 4096 -p 11211 -u memcache -l 127.0.0.1 -d -vvv
and I am using the following driver to put some key/value pairs into Memcache. For…

Ryan R. Rosario
- 5,114
- 9
- 41
- 56
4
votes
5 answers
Unexpected behaviour after memcached server restarts. How to configure/rectify it?
I have a pool of persistent connections(Memcached clients). Data are being cached in the memcached server. If after restarting the memcached server, I try to get the cached data using the client from the pool, I m getting the below…

Amit Daga
- 127
- 4
- 13
4
votes
1 answer
AWS Elatic Memcache logs piling up in Application server
I am implemented Elastic Memcahce in Java and deployed on WildFly application server with the below code, When i deployed on AWS, some how getting non stop loggers as below which eating my server log size. Can some one please help me is something…

Chandrahasan
- 1,991
- 24
- 26
4
votes
1 answer
Spymemcached, configure for failover
I have a cluster of membase hosts, and I also have a set of moxi processes, running on different boxes, all configured to talk with this cluster.
My client is using spymemcached and I am trying to configure a MemcachedClient so it knows about all…

Iker Jimenez
- 7,105
- 9
- 49
- 46
4
votes
0 answers
Timed out waiting for operation - Memcached error
Getting this error most of the time with memcached:
Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out waiting for operation - failing node: /127.0.0.1:11211
For this code:
private byte[] cacheGet(String key) {
…

quarks
- 33,478
- 73
- 290
- 513
4
votes
0 answers
Disable Logging or Set Log Level Elasticache-Cluster-client
Could someone let me know how to disable logging or set log level to ERROR for http://mvnrepository.com/artifact/com.amazonaws/elasticache-java-cluster-client/1.0.61.0
It uses the spymemcached implementation…

af_khan
- 1,030
- 4
- 25
- 49
4
votes
0 answers
memcached connection disconnects and reconnects very often - spymemcached 2.11.4
We use spymemcached 2.11.4 library and have been noticing a lot of warning messages (disconnect/reconnect) in our logs, our clients disconnects and reconnects very often (roughly once a minute)
Does anyone know why these can happen:
2014-09-29…

user2809732
- 111
- 1
- 1
- 6
4
votes
1 answer
What kind of bean should I use to provide access to a pool of objects in EJB?
At a high level, I have a MemcachedPoolService class that has two methods: getClientInstance() and returnClientInstance(client). As expected, getClientInstance() returns an instance of a MemcachedClient (spymemcachced) to the caller, and…

daveashworth
- 580
- 5
- 15
4
votes
2 answers
Memcached consistent hashing & network partitioning, how to solve?
My understanding is when using memcached in "consistent hashing" mode, when a node is down, the clients will remap the key with the algo.
Consider I have 2 clients (A,B) and two servers (C,D)
What if client A think server C is down, but B think C is…

Howard
- 19,215
- 35
- 112
- 184
4
votes
1 answer
how to set the expiry time more than 30 days in memcachedClient set() method
Is there any way to set the memcachedClient set(String key,int exp,Object obj) method to Store object more than 30 days(2592000 second).
If any then Explain please.

navin kumar
- 191
- 3
- 6
- 16
4
votes
2 answers
How to add memcached nodes dynamically with spymemcached
I have a Java application setup which has multiple memcached server nodes communicating with a spymemcached client.
I want to know if it is possible to add or remove server nodes at runtime, without disturbing all the existing cache nodes (I know…

Tharique Shameem
- 117
- 6