Date: Sun, 20 Jul 2008 19:21:12 +0200 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-performance@freebsd.org Subject: Re: Large number of http connections immediately dropped Message-ID: <g5vs69$gam$1@ger.gmane.org> In-Reply-To: <E6D474AE-2295-4A13-8FF9-FD24404FBC80@ithinksw.com> References: <E6D474AE-2295-4A13-8FF9-FD24404FBC80@ithinksw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Strange wrote: > We're running a rather high-load webserver using FreeBSD > 7-RELEASE/amd64/nginx on an Intel em gigabit connection. > Performance is good for our current bandwidth use (about 20Mbit and > ~2000 connections/sec at the moment), but a large number of HTTP > requests are being immediately dropped before getting to nginx. I see > complaints about this with earlier versions of FreeBSD - > http://forum.lighttpd.net/topic/171 - but no solutions. Does anyone know > what could be the problem, or anything we could do about it? > > There are several other servers running earlier FreeBSDs on i386 which > don't seem to have this problem, but I still haven't ruled out upstream > hardware problems or Sandvine yet. > > On the server: > -nginx's error log is full of "accept() failed (53: Software caused > connection abort)", sometimes printing three or four at the same time. > > -messages is full of: > Limiting open port RST response from 441 to 200 packets/sec > Limiting open port RST response from 488 to 200 packets/sec > Limiting open port RST response from 399 to 200 packets/sec > Limiting open port RST response from 434 to 200 packets/sec > Limiting open port RST response from 308 to 200 packets/sec > I'm not sure if that's related or not. It's almost certainly related - in addition to other suggested tuning by Istvan, set net.inet.icmp.icmplim sysctl to something high - for example 2000 in your case. Actually, in your sysctl.conf it's set to 400 - you do know you have to run "/etc/rc.d/sysctl restart" to reaload sysctl.conf?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g5vs69$gam$1>