Questions tagged [xmemcached]

XMemcached is a high performance, easy to use multithreaded memcached client in java.

XMemcached is a high performance, easy to use multithreaded memcached client in java.

It's nio based and was carefully turned to get top performance.

For more information please visit https://code.google.com/p/xmemcached/

20 questions
3
votes
1 answer

Difference xmemcached vs spymemcached

For your project chose memcached. Found two implementations for Java xmemcached and spymemcached. Very little information about the difference between these products. What is the essential difference? What is the advantage of one over the…
Gleb Belyaev
  • 1,009
  • 1
  • 14
  • 23
3
votes
1 answer

java.lang.IllegalStateException: Shutdown in progress in XMemcachedClient.shutdown

I am getting an exception in my XMemcached related code. Can anyone help me to fix this expcetion? Thank you very much for advanced! Exception in thread "Thread-9" java.lang.IllegalStateException: Shutdown in progress at…
super.xiaow
  • 51
  • 2
  • 7
3
votes
0 answers

Benefits of SessionLocator in XMemcached Replication

In my Java app we have used Memcached to set data and get the same data later in the process. Later repatch has been applied to Memcached as an new instance of memcache has been introduced, which actually replicate the keys between memcached1 and…
user1660325
  • 747
  • 4
  • 20
  • 35
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

Multithreading use of XMemcached client

Given client = new XMemcachedClient(server, port); What happens if I have several thread doing this: object = client.get(key); In the (quite empty) xmemcached javadoc I see no mention of synchronization. is MemcachedClient.get synchronized? if…
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
1
vote
1 answer

xmemcached set error ArrayIndexOutOfBounds

I add to servers to xmemcached and try to set a few items. I get this exception bar Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:371) at…
Shades88
  • 7,934
  • 22
  • 88
  • 130
1
vote
2 answers

xmemcached set byte array

Im using xmemcached to write memcacheclient. Now I want to have a method like: set(key, byte[]) and get(key) return byte[] in memcache client. Anyone can suggest me something to do that in XMEMCACHED. In my case, Im using protocol buffer to…
kop
  • 939
  • 1
  • 6
  • 5
0
votes
1 answer

Does a Memcached client hold unused keys in memory?

I have multiple services which need Memcached (e.g. "book service", "customer service"). I have two options: Set up one AWS Elasticache cluster and share it, using a prefix scheme for the keys "book-service-key1", "customer-service-key1" etc. Set…
Fletch
  • 4,829
  • 2
  • 41
  • 55
0
votes
1 answer

Java Xmemcached or Spymemcached client unable to get the key value which is set by C# Enyim client

Java Xmemcached or Spymemcached client are unable to get the correct value from memcached by key which is set by C# Enyim client. We have already tried set C# MemcachedProtocol.Binary to Text to store basic String format data, but both Java…
Jason Wu
  • 1
  • 1
0
votes
1 answer

InterruptedException during put operation SSM Xmemcached

We have a dedicated server as memcached. It has below configuration: STAT curr_connections 242 STAT total_connections 684 STAT chunk_size 48 STAT num_threads 64 STAT num_threads_per_udp 64 But we are seeing InterruptedException exception for a…
PVJ
  • 79
  • 3
  • 9
0
votes
0 answers

Use xmemcached client to access AWS ElastiCache

We use memcached in Java. Our environment runs on OpenShift Online (PaaS) and we have currently one "gear" running our backend java application and one "gear" running memcached. Since it would be cheaper, we like to migrate to AWS ElastiCache - but…
badera
  • 1,495
  • 2
  • 24
  • 49
0
votes
1 answer

Is memcached server response out of order?

If I have a client that creates a TCP connection, and send multiple commands to the memcached server, will server guarantee to respond to these commands in the same order?
performanceuser
  • 2,793
  • 5
  • 34
  • 44
0
votes
0 answers

xmemcached faster then static object access

we have a java web application that use static object to cache values, I tried to use memecached to share cache between multiple web app, I ran a stress test comparing the performance before and after the change and here was the surprise, web app…
Yehia
  • 15
  • 3
0
votes
0 answers

Spring + memcached save after startup

I've a method like this @Transactional @Cacheable(value="defaultCache") public List getClassesFromOntologyByJena() { ............ } And I've configured memcached in corret way beacuse whene I call this method as a…
Claudio Pomo
  • 2,392
  • 7
  • 42
  • 71
0
votes
0 answers

Memcached keys distribution

I'm using xmemcached client. Is there a mechanism or best way to control from client side the distribution of the keys per server, i.e. I want to make sure all the keys following a certain custom pattern to be stored in server1, while the others…
Caro
  • 11
  • 3
1
2