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.

I have installed memcached on my Ubuntu 9.1 server. The number of simultaneous incoming connections is the default (default is 1024) and I am running it with the following arguments:

/usr/bin/memcached -m 4096 -p 11211 -u nobody -l 127.0.0.1

When I check the number of connections I found this:

netstat -an|awk '{print $5, $6}' | cut -d: -f2 | sort | uniq -c | egrep '(11211|3306)'
56 11211 ESTABLISHED
539 11211 TIME_WAIT
54 3306 ESTABLISHED
550 3306 TIME_WAIT

Now the question is, while I have the default max number of allowed connections to memcached which is 1024, why do I have a lot of connections in Time_Wait status? How can I fix this?

share|improve this question
1  
serverfault.com/questions/219939/… –  AlexD Jun 20 '11 at 10:21
    
TIME_WAIT doesn't mean they are waiting for resources. Can you update this question with what you think the problem is? –  polynomial Sep 4 '11 at 18:27
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.