Memcached Java Client

Waynn Lue wlue at
Thu May 10 02:37:50 UTC 2007

If you've only tried it with two objects, it's possible that it just
happened to hash both objects to the same server.  Hashing doesn't guarantee
that objects will be exactly evenly distributed, but good hashing functions
should do a fairly good approximation.  Try it with more objects and it
should spread out more.


-----Original Message-----
From: memcached-bounces at
[mailto:memcached-bounces at] On Behalf Of Oezcan Acar
Sent: Wednesday, May 09, 2007 7:46 AM
To: memcached at
Subject: Memcached Java Client


I am using memcached 1.2.1 with java Client
( I have 2 memcached instances on 2 hosts.
The java client puts all the time the object to memcached instance 1,
instance 2 is never touched. In the client code there is a method which uses
the hash of the object in order to get one memcached server. I tried it with
2 different object and all the time the objects are stored in instance 1. 

How can I distibute the store calls to different memcached instances?


Mit freundlichen Grüßen


Özcan Acar, Dipl. Inf(FH)
Smart Web Business AG

Im Niederfeld 8
65462 Gustavsburg

+49 171 57 33 66 5
acar at

More information about the memcached mailing list