How to increase max connections in memcached


How to increase max connections in memcached

Edit your config file: /etc/sysconfig/memcached

vi /etc/sysconfig/memcached

You see:

PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS=""

Change line:

MAXCONN="1024"

Final result:

PORT="11211"
USER="memcached"
MAXCONN="10240"
CACHESIZE="640"
OPTIONS=""

Then start memcached service

service memcached restart

Leave a Reply