1754016 Members
7380 Online
108811 Solutions
New Discussion юеВ

Re: TIME_WAIT

 
Chakravarthi
Trusted Contributor

TIME_WAIT

hi,

i'm using 2.2 kernel machine, in this socket goes to TIME_WAIT state and doesnt accept any new connections for 60 seconds. how do i reduce the timeout value in 2.2 kernel

i tried changing values of tcp_fin_timeout and also i tried the following command

sysctl -w net.ipv4.vs.timeout_timewait=30 it gives error
error: 'net.ipv4.vs.timeout_timewait' is an unknown key

is there any other way to come out of this problem?

-chakri

7 REPLIES 7
Sergejs Svitnevs
Honored Contributor

Re: TIME_WAIT

Did you try the following command ?
# sysctl -w net.ipv4.tcp_fin_timeout = 30


Regards,
Sergejs
Ivan Ferreira
Honored Contributor

Re: TIME_WAIT

I don't have 2.2 kernel, but in the version I use, the value is:

net.ipv4.tcp_fin_timeout

But, why does not accept new connections? Is not a daemon that can spawn childs?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Chakravarthi
Trusted Contributor

Re: TIME_WAIT

not sure, using an application which opens a socket connectiona and when you close the socket it goes to TIME_WAIT state and doesnt accept new connection for 60 seconds. tried changing all the parameters still no luck.

--chakri
Muthukumar_5
Honored Contributor

Re: TIME_WAIT

check resource status of CPU and memory or disk. May be any of them are getting saturated. sysctl -a | grep timewait gives if there is a tunable called net.ipv4.vs.timeout_timewait. Else select relavent tunable regarding to 2.2 kernel.

-Muthu

Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: TIME_WAIT

what are the tunables you are trying?

http://akt.sourceforge.net/doc/akt.list.02.html - List.

# check list

# dmesg -c gives more related errors for tuning
# resource usage with sar or top

-Muthu
Easy to suggest when don't know about the problem!
B. Hulst
Trusted Contributor

Re: TIME_WAIT

Hi,

Reducing a time out value is not a very stable option in many cases...

Regards,
Bob
Chakravarthi
Trusted Contributor

Re: TIME_WAIT


which is the equivalent key in 2.2 of net.ipv4.vs.timeout_timewait?