STAT curr_connections 15 STAT total_connections 340578 Looks like your client code is creating and closing connections, instead of reusing them. You could increase the port range and/or decrease the tcp close timeout, but much easier fix would be to use the client libraries connection reusing ability.
thanks! Rohit Karlupia On Fri, Oct 22, 2010 at 11:50 AM, dormando <[email protected]> wrote: > > > We have a very busy high traffic site and recently started using memached > to store frequently accessed queries. We put memcached on each > > php application server so that the connection is local to the system. > > Today, during one of our peek times, we started getting this error and > had to disable the caching of queries: > > > > [20-Oct-2010 12:05:57] PHP Warning: Memcache::connect() [<a > href='memcache.connect'>memcache.connect</a>]: Can't connect to > > 127.0.0.1:11211, Cannot assign requested address (99) > > You're probably running out of local ports. Google for that phrase and > you'll probably find help :) > > Just as a side note; you're meant to set up memcached as a big cluster and > use all the cache space, as noted at http://memcached.org/about - sticking > them all to localhost only defeats half the purpose. yes I know that > "localhost is faster" but it's more than adequate over the network. > > -Dormando
