Version 0.53 of libmemcached released

2011-09-29 Thread Brian Aker
Hi! * Fix for FreeBSD/OpenBSD and -lm * Added memcached_exist() * Fix for memory when using config test. * CLI gained --quiet http://libmemcached.org/ Blog post on memcached_exist() - http://blog.krow.net/post/10549707127 Cheers, -Brian

Multi-get getting stuck

2011-09-29 Thread Prasad
Hi, I am trying to use mget() to get multiple data pieces using the C++ API. When it works the performance difference is great. However, I seem to hit some sort of a communication hang when I have about 5000 or higher key requests together. Has anyone seen this issue earlier? Is there a size

Re: Multi-get getting stuck

2011-09-29 Thread dormando
I am trying to use mget() to get multiple data pieces using the C++ API. When it works the performance difference is great. However, I seem to hit some sort of a communication hang when I have about 5000 or higher key requests together. What client is that, exactly? The C++ API isn't specific

cache PHP objects converts to __Incomplete_PHP_Object

2011-09-29 Thread nguyendh
Hi guys, I have an array of a PHP object (e.g. instance of a class , say Client class). I save the whole array in Memcached. When I retrieve the array from Memcached, I receive __incomplete_PHP_objects ? Can I cache instances of class (object) in Memcached ? I am using v1.4.5 on Cent OS

Patch for start-memcached writing wrong PID to $pidfile

2011-09-29 Thread Nate
At some point it looks like start-memcached was changed to fork an extra time, as the comments put it, now that the tty is closed. I'm not sure why, but what I noticed is that the wrong PID was being written to the PID file. It was writing the PID of the intermediate fork, not the one of the

Re: cache PHP objects converts to __Incomplete_PHP_Object

2011-09-29 Thread Brian Moon
yes, but the class definition must be loaded before you read the cache or you must have an autoloader that will do on demand. Brian. http://brian.moonspot.net On 9/29/11 1:09 PM, nguyendh wrote: Hi guys, I have an array of a PHP object (e.g. instance of a class , say Client class). I save

Re: cache PHP objects converts to __Incomplete_PHP_Object

2011-09-29 Thread nguyendh
Can you please explain more and give me example codes ? I am just a PHP beginner-intermidiate developer. Thanks so much. On Sep 29, 1:03 pm, Brian Moon br...@moonspot.net wrote: yes, but the class definition must be loaded before you read the cache or you must have an autoloader that will do

Re: Multi-get getting stuck

2011-09-29 Thread Brian Aker
Hi! On Thu, Sep 29, 2011 at 7:47 AM, Prasad pspha...@gmail.com wrote: I am trying to use mget() to get multiple data pieces using the C++ API. When it works the performance difference is great. Is this the one in libmemcached? If so use the C API. The C++ API is just there for a couple of

Re: Multi-get getting stuck

2011-09-29 Thread Prasad
Hi, Thanks for your responses. Sorry, I should not have said C++ API. This was my wrapper over the libmemcached C API, 0.43 Dormando, yes it is the binary protocol and I think what you mention is exactly what might be happening. The client seems to get stuck on send(). The read buffer you

Re: Multi-get getting stuck

2011-09-29 Thread Brian Aker
Hi! On Sep 29, 2011, at 2:07 PM, dormando dorma...@rydia.net wrote: Still, I thought this was fixed already. As a workaround you can chunk your multigets into smaller sections, but I thought that the client did support it It does, so I would wonder how many total key requests are being

Re: Multi-get getting stuck

2011-09-29 Thread Prasad
Hi, It starts getting stuck when I have a list of about 5000 keys in the mget. If I try to step and check which key is currently being sent ( when the process is stuck ) its somewhere around the 2500 mark. Is this fixed in 0.43 itself? And so with this fix does the client call a fetch after a

Re: Multi-get getting stuck

2011-09-29 Thread Brian Aker
Hi! On Sep 29, 2011, at 2:30 PM, Prasad wrote: And so with this fix does the client call a fetch after a small chunk of multigets are reached inherently? Since I don't call the fetch till I return from the mget API call. There is a water mark that causes the mget to go multi if it is too

Issue 224 in memcached: memcached exits with code 0, under abnormal conditions

2011-09-29 Thread memcached
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 224 by antoun.k...@gmail.com: memcached exits with code 0, under abnormal conditions http://code.google.com/p/memcached/issues/detail?id=224 What steps will reproduce the problem? Arrange for event_base_loop to exit with a

Re: Issue 224 in memcached: memcached exits with code 0, under abnormal conditions

2011-09-29 Thread memcached
Comment #1 on issue 224 by dorma...@rydia.net: memcached exits with code 0, under abnormal conditions http://code.google.com/p/memcached/issues/detail?id=224 About as interesting as the error code being wrong, why is your instance exiting from the event loop abnormally and stopping?