From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c3739b53c719bbea X-Google-Attributes: gidf678f,public X-Google-Thread: 1164f8,c3739b53c719bbea X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,c3739b53c719bbea X-Google-Attributes: gidfee84,public From: mogul@actitis.pa.dec.com (Jeffrey Mogul) Subject: Re: Heavy system load <-> tcp-problems? Date: 1998/03/13 Message-ID: <6ea05i$ps@usenet.pa.dec.com>#1/1 X-Deja-AN: 333521503 References: <35069CBA.3F54@cs.tu-berlin.de> <3506AEAF.2A706FF4@netvigator.com> Organization: DEC Western Research Newsgroups: comp.sys.dec,comp.unix.osf.misc,comp.unix.osf.osf1 In article <3506AEAF.2A706FF4@netvigator.com>, David Lee writes: |> A lot of TIME_WAIT means the three way TCP hand shaking doesn't complete. Not exactly. Digital UNIX can keep zillions of TIME_WAIT entries (as long as you have enough RAM, and the original poster had 2GB) without affecting its ability to accept new connections. If indeed the "three-way handshake" (SYN packet exchange) is failing, this is because the "socket listen queue depth" is too small. The default on V4.0 is, I believe, 1024; you can set it as high as 32767. For full instructions, and much more about tuning Digital UNIX for high-performance Web servers, please see: http://www.digital.com/internet/document/ias/tuning.html |> You have to decrease the tcp_keepinit to 30. This should not be necessary if the system is configured according to the document cited above. However, if your system is under a "SYN-flooding" attack, it *might* help to reduce tcp_keepinit. By the way, large numbers of TIME_WAIT states are entirely normal; in fact, if your server is busy, this is basically required by the TCP specification (RFC793). -Jeff