Thanks for the quick response.
Server's version: 1.2.2. Below you will find current stats.
How can I determine whether I'm using persistent or single-shot
connections?
Also netstat gave me a long list of connections. How can I use it to
pinpoint relevant issues ?
Thanks again,
Niro
array (
'127.0.0.1:11211' =>
array (
'pid' => '8107',
'uptime' => '72222',
'time' => '1266404008',
'version' => '1.2.2',
'pointer_size' => '32',
'rusage_user' => '17.510000',
'rusage_system' => '34.380000',
'curr_items' => '79225',
'total_items' => '1088786',
'bytes' => '54549923',
'curr_connections' => '1',
'total_connections' => '810678',
'connection_structures' => '113',
'cmd_get' => '2597406',
'cmd_set' => '1072009',
'get_hits' => '2228921',
'get_misses' => '368485',
'evictions' => '0',
'bytes_read' => '2266641689',
'bytes_written' => '3573517573',
'limit_maxbytes' => '67108864',
'threads' => '1',
),
On Feb 17, 12:33 pm, Trond Norbye <[email protected]> wrote:
> What is your memcached version?
>
> Are you using persistent or single-shot connections to the memcached server?
> You could also look at the socket state on your servers with netstat etc))
>
> Cheers,
>
> Trond
>
> On Feb 17, 2010, at 9:48 AM, Niro wrote:
>
> > I'm running an EC2/Scalr small app instance with the Scalr Apache. I
> > added APC to cache php and run the pre- installed memcache server on
> > the local machine.
>
> > after a few million hits, the memcache fails with error : "Can't
> > connect to 127.0.0.1:11211, Connection refused (111) " and then many
> > "cannot find connection identifier" and occasional "Can't connect to
> > 127.0.0.1:11211, Connection refused (111) ".
>
> > The server remains in this situation and never recovers unless I
> > restart memcached deamon.
>
> > Any idea on how I can find the root cause and solve it is highly
> > appreciated.
>
> > Server info:
> > from phpinfo: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.10 with Suhosin-
> > Patch mod_ssl/2.2.8 OpenSSL/0.9.8g
> > From cat /etc/*-release
> > DISTRIB_ID=Ubuntu
> > DISTRIB_RELEASE=8.04
> > DISTRIB_CODENAME=hardy
> > DISTRIB_DESCRIPTION="Ubuntu 8.04.1"