Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-01-2007, 02:16 PM   #1
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 108

Rep: Reputation: 16
decrease TIME_WAIT


I have 2 busy servers with lots of short connections per minute. Because of that when I do a netstat -antp I get lots of TIME_WAIT connections which I believe are connections that did not send the terminate signal(or how is it called).

Is there a way to decrease the TIME_WAIT time?

I am running RHEL 4 with a 2.6 kernel and Debian etch with a 2.6 kernel.

Old 06-01-2007, 06:06 PM   #2
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
These settings are all controlled in /proc/sys/net/ipv4

The ones i think you will want to look at are:


Read and

(The latter is for RedHat, but should still be applicable)

Hope this helps.
Old 06-04-2007, 06:26 AM   #3
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 108

Original Poster
Rep: Reputation: 16
this helped, thanks a lot
Old 06-14-2007, 10:51 PM   #4
LQ Newbie
Registered: May 2006
Posts: 1

Rep: Reputation: 0

I'm having the same problem so I made the suggested RedHat changes without any luck. I'm also running RH El4 with the 2.6 kernel. Googled the heck out of time_wait and can't find anything that works for RedHat.

Any ideas would be much appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TIME_WAIT and CLOSE_WAIT echox Linux - Enterprise 1 09-03-2006 09:26 PM
time_wait problem gecoool Linux - Software 3 08-31-2005 01:02 AM
MSL and TCP time_wait 98steve600 Linux - General 1 03-28-2005 03:45 AM
How do I close TIME_WAIT connections? linuxboy69 Linux - Software 2 09-01-2004 04:13 PM
TIME_WAIT and too many sockets in that state dkumar10 Linux - Networking 1 07-16-2004 06:59 AM

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration