Re: lots of time_wait

2010-09-10 Thread Alberto Mijares
2010/9/10 jason :
> hello,i have a problem:
> tcp4 0 0 192.168.0.26.9939 192.168.0.195.11211 TIME_WAIT
> netstat -an | awk '{if($5 ~/11200/ && $6 ~/TIME_WAIT/) print $0}' | wc -l
> 64203
>
> sysctl net.inet.tcp.msl
> net.inet.tcp.msl: 2500
>


You should check the application's idle connections time out.

Regards


Alberto Mijares
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


lots of time_wait

2010-09-10 Thread jason
hello,i have a problem:
tcp4 0 0 192.168.0.26.9939 192.168.0.195.11211 TIME_WAIT
netstat -an | awk '{if($5 ~/11200/ && $6 ~/TIME_WAIT/) print $0}' | wc -l
64203

sysctl net.inet.tcp.msl
net.inet.tcp.msl: 2500


msl will not recycle "TIME_WAIT" states when have lots of "TIME_WAIT",like64203
so server local port will Exhaust, if i open a connection it will report:
telnet 192.168.0.195 11211
Trying 192.168.0.195...
telnet: connect to address 192.168.0.195: Can't assign requested address
telnet: Unable to connect to remote host

what can i do? only reboot server?

system Environment: FreeBSD 7.2-RELEASE #0
amd64___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"