Re: TIME_WAIT connections

From: Andi Kleen (ak@suse.de)
Date: Mon Jun 19 2000 - 05:22:00 EST


On Mon, Jun 19, 2000 at 11:48:34AM +0200, Daniel Podlejski wrote:
> # netstat -a -n|grep ".80 "|cut -c 68-|sort|uniq -c|sort -n
> 6 LISTEN
> 36 LAST_ACK
> 53 CLOSING
> 61 CLOSE
> 68 SYN_RECV
> 157 FIN_WAIT2
> 225 FIN_WAIT1
> 369 ESTABLISHED
> 4054 TIME_WAIT
>
> Machine is web serwer with reather big traffic. Why there is
> so much connections in TIME_WAIT state ?

TIME-WAIT usually hangs for 60 seconds. The more load the more TIME-WAIT.

2.4 has some new strategies to avoid TIME-WAIT in more cases.

>
> Similar problem was in FreeBSD 3.x, but in 4.0 there is better.
> Connections in TIME_WAIT state is below 500.

It is not a big ``problem''. Linux 2.2 was designed to handle lots of
TIME-WAIT sockets efficiently. They have only a very low impact on the
system.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:16 EST