Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

nixcraft has a tutorial on configuring memcached server(link) at the end says:

For busy memcached server you need to increase system file descriptor and IP port limits

here is the code to do so:

# Increase system IP port limits
net.ipv4.ip_local_port_range = 2000 65000

why should we do this? memcached is a server and it will respond to clients with its listening port which is 11211 by default. So we shouldn't be limited by local port range.(net.ipv4.ip_local_port_range) The only limit is file descriptors. local port range should be a limit for servers like squid which generate local traffic

share|improve this question

Nixcraft, has a tutorial on how to install it and to use port range regarding to your usage. Memcache(d) servers should run on a separate instance to have the most ports available to your needs, basicly memcached connections are very similar to mysql ones, connect -> get data -> close.

Try to increase threads and concurent connections for more performance, or run memcached on a vps instance.

Hope this helps,

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.