Random TCP 3 second delay

Vlad Galu dudu at dudu.ro
Thu May 12 10:56:51 UTC 2011


2011/5/12 Michael <michael at gameservice.ru>

> Hello.
>
> I'm  running  nginx  in  load balancing mode for java application with
> around  400  requests/second.  For  every  request,  nginx  is doing a
> HTTP/1.0  connection  without  keep alive to jetty. Several
> times  per  minute this connection takes 3 seconds complete. I don't see
> 2 or 1 seconds  response from upstream, only 3 seconds. Listen backlog is
> not
> overflowed.
>
> I searched for this delay in google, and found similar problem in Linux:
> http://kerneltrap.org/mailarchive/linux-net/2008/3/26/1264734/thread
> http://kerneltrap.org/mailarchive/linux-net/2008/2/4/713224/thread
>
> And Windows:
>
> http://stackoverflow.com/questions/1875151/delay-in-multiple-tcp-connections-from-java-to-the-same-machine/1927486#1927486
>
> Can you advice what should i tune in FreeBSD to fix this problem?
>

Hello Michael,

net.inet.tcp.finwait2_timeout and net.inet.tcp.fast_finwait2_recycle are
your friends.

-- 
Good, fast & cheap. Pick any two.


More information about the freebsd-net mailing list