Hello everyone,

 every weeks my memcache server stop accepting more connections. Today
before restart daemon, i've check stats.

stats
STAT pid 30026
STAT uptime 938964
STAT time 1306667508
STAT version 1.2.2
STAT pointer_size 64
STAT rusage_user 682.422648
STAT rusage_system 1636.058247
STAT curr_items 1630320
STAT total_items 44025061
STAT bytes 1395547058
STAT curr_connections 1
STAT total_connections 49126599
STAT connection_structures 348
STAT cmd_get 52910303
STAT cmd_set 44025061
STAT get_hits 42444282
STAT get_misses 10466021
STAT evictions 0
STAT bytes_read 45726499071
STAT bytes_written 41367374940
STAT limit_maxbytes 1610612736
STAT threads 1
END

My memcached.conf

# Run memcached as a daemon. This command is implied, and is not
needed for the
# daemon to run. See the README.Debian that comes with this package
for more
# information.
-d

# Log memcached's output to /var/log/memcached
logfile /var/log/memcached.log

# Be verbose
# -v

# Be even more verbose (print client commands as well)
# -vv

# Start with a cap of 64 megs of memory. It's reasonable, and the
daemon default
# Note that the daemon will grow to this size, but does not start out
holding this much
# memory
-m 2048

# Default connection port is 11211
-p 11211

# Run the daemon as root. The start-memcached will default to running
as root if no
# -u command is present in this config file
-u nobody

# Specify which IP address to listen on. The default is to listen on
all IP addresses
# This parameter is one of the only security measures that memcached
has, so make sure
# it's listening on a firewalled interface.
-l 192.168.0.14

# Limit the number of simultaneous incoming connections. The daemon
default is 1024
-c 64000

# Lock down all paged memory. Consult with the README and homepage
before you do this
# -k

# Return error when memory is exhausted (rather than removing items)
-M

# Maximize core file limit
# -r

Memcache information at php.ini:

; Handler used to store/retrieve data.
session.save_handler = memcache
session.save_path = "tcp://192.168.0.14:11211"

How can i determine if memcache is full or when it is close to 80%? My
idea is to try to clear all information from the memcache with more
than 24 hours or something like that.

Best Regards,

--eduardo

Reply via email to