LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: 16
decrease TIME_WAIT


Hi,

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.

Thanks
 
Old 06-01-2007, 06:06 PM   #2
camh
Member
 
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:

tcp_fin_timeout
tcp_keepalive_time
tcp_max_orphans

Read http://www.securityfocus.com/infocus/1711 and http://www.faqs.org/docs/securing/chap6sec75.html

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

Hope this helps.
 
Old 06-04-2007, 06:26 AM   #3
izghitu
Member
 
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
golson70
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
time_waits

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.
 
  


Reply


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 05:55 AM.

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