Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I like to use the following commands to manage 'TIME_WAIT', in the hope to free up resources.

echo 20 > /proc/sys/net/ipv4/tcp_fin_timeout
sysctl -w net.ipv4.tcp_tw_reuse=1
sysctl -w net.ipv4.tcp_tw_recycle=1

I found something interesting while doing a tcpdump. Sometimes if a client makes a connection (syn), the server will not reply (syn -ack).

My question is, could it be because of the top three commands.

share|improve this question

Apparently, yes:

I can't explain why, though.

share|improve this answer

tw_recycle does not play well with load-balancers.

"Known to cause some issues with hoststated (load balancing and fail over) if enabled, should be used with caution."

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.