PHP Client Hangs Apache: Any Ideas?

John McCaskey johnm at
Wed Mar 16 09:31:18 PST 2005

On Wed, 2005-03-16 at 12:39 -0500, Greg Grothaus wrote:
> I initially tried the version on the memcached website that Brad put up 
> there.  Noticing these errors, I switched and tried to use php-mcache, 
> but it had the same difficulties.  I am currently trying to double check 
> that there are no references to Brad's PHP client that might be causing 
> the problem, but I don't think that there are.
> -Greg

Well I'm the author of the php mcache extension... so I can help most
with that, I haven't heard of anyone having these issues and we use the
extension extensively in production systems.  Could you provide details
on the following:

php version,
os, and kernel version,
lib-event version,
memcached version,
polling method used by libevent (epoll, select, etc),
apache version (and if 2.x worker model, pre-fork, per-thread, etc.)

Also if you could describe the environment, ie how many memcached
instances? are they on the same machine as the client? seperate machine
over network? etc.

> John McCaskey wrote:
> >On Wed, 2005-03-16 at 10:55 -0500, Greg Grothaus wrote:
> >  
> >
> >>I tried using memcached across two servers using the PHP client.  After 
> >>running the servers for a few hours, the number of apache processes had 
> >>grown to the maximum number on the server and were requests were being 
> >>dropped.  The apache processes simply weren't terminating.  I can't 
> >>"prove" that it was memcached as the issue, but I've repeated this 
> >>experiment a number of times with and without memcached.  With 
> >>memcached, apache processes grow and never complete, without memcached 
> >>there is no problem.
> >>
> >>Any idea as to what might be happenning here?
> >>    
> >>
> >
> >What php client are you using? There are several of varying quality,
> >until we know which its very hard to give any suggestions.
> >
> >  
> >
> >>-Greg
> >>    
> >>
John A. McCaskey
Software Development Engineer
Klir Technologies, Inc.
johnm at

More information about the memcached mailing list