Actually we use most .net and the EnyimMemcached client. Some people here use Java and Ruby, but for other purposes and never experienced a problem like yours.
I had a problem like yours using list of objects stored in memcached, and I need to change my logic, to reducing size of object and to not use lists. Its fixed the problem, so I think you should avoid store large objects in memcached. To help you identify the problem, I recommend you to check what kind of serialization your client is using and measury the performance of the serialization to see how much objects you can serialize per second, and also check how much memcached operations are you doing per second. If the quantity of objects serialized and the quantity of operations are almost the same, the serialization is your problem. You can access a performance test for Java clients here: http://xmemcached.googlecode.com/svn/trunk/benchmark/benchmark.html Note that for bigger objects you have lower tps. Best regards, Sergio 2011/9/26 Bui Dinh Thi <[email protected]> > Dear Mr. Sergio Garcia > > Thank you so much for your help. > we are store Java objects in Memcached, I think it is difficute to reduce > size of cached object because it depends on logic of the appliation. My I > know which Memcached Java client are you using now? do you think we can > solve it by improving source code in Memcached Java client? > > Best regards. > Thi > > On Sun, Sep 25, 2011 at 10:46 AM, Sergio Garcia <[email protected]>wrote: > >> Hi, >> >> Are you storing objects in memcached? >> If you are, the serialization of these objects could explain these high >> CPU usage. >> >> I experienced the same problem. >> If should store small objects to avoid these problem. >> >> 2011/9/23 thibd <[email protected]> >> >>> Dear all, >>> >>> When I apply XMemcached on my J2EE web application the CPU usage is >>> higher (about 90~100%) in compare with old source code. The tps >>> (transaction per second) indicator is also lower than it was before >>> with old source code. >>> This is the specs of my Web Server: >>> - Tomcat server 5.5 >>> - RAM: 2.0 GB >>> - Processor: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz 2.93GHz >>> - LAN speed: 100 Mbps >>> >>> Would you please give me some suggestions to investigate the problem, >>> does Memcached require more heap size from client application than >>> when we don't apply Memcached? >>> >>> Thank you. >>> >> >> >
