Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006

    Over 5000 time_wait connection.

    Ok, so when I issue this command:
    netstat -n | grep :80 | grep "TIME_WAIT" | wc -l

    I get over 5000 connections in time_wait.

    I heard TIME_WAIT is not a problem, but just want to make sure, because 5000 seems like alot, and my server is expereicing high loads due to apache.

    If anyone have information that would be great.


  2. #2
    TIME_WAIT is defined by /proc/sys/net/ipv4/tcp_fin_timeout. Default is 60 seconds.

    set your time wait lower: 'sysctl -w net.ipv4.tcp_fin_timeout=30'

    It is normal to have a socket in the TIME_WAIT state for a long period of time. The time is specified in RFC793 as twice the Maximum Segment Lifetime (MSL). MSL is specified to be 2 minutes. So, a socket could be in a TIME_WAIT state for as long as 4 minutes. Some systems implement different values (less than 2 minutes) for the MSL.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts