Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.