Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2011 12:25:31 +0200
From:      Vlad Galu <dudu@dudu.ro>
To:        Michael <michael@gameservice.ru>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Random TCP 3 second delay
Message-ID:  <BANLkTim24BgYU=HsU_7mS_zFyv0j0BXCUA@mail.gmail.com>
In-Reply-To: <17710363528.20110512130123@gameservice.ru>
References:  <17710363528.20110512130123@gameservice.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/5/12 Michael <michael@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTim24BgYU=HsU_7mS_zFyv0j0BXCUA>