Date: Sat, 25 Jun 2011 03:49:30 +0200 From: "Ronald Klop" <ronald-freebsd8@klop.yi.org> To: freebsd-java@freebsd.org, "Luis Neves" <luis.neves@gmail.com> Subject: Re: How to socket accept filters? Message-ID: <op.vxlzcsu08527sy@212-182-167-131.ip.telfort.nl> In-Reply-To: <iu2rcc$25g$1@dough.gmane.org> References: <BANLkTi=h2nEhyd-AZV2tLYBoaNW=6mM6Dw@mail.gmail.com> <201106241650.09920.achill@matrix.gatewaynet.com> <op.vxk4r7yh8527sy@212-182-167-131.ip.telfort.nl> <iu2rcc$25g$1@dough.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Jun 2011 22:17:15 +0200, Luis Neves <luis.neves@gmail.com> =20 wrote: > On 06/24/2011 03:49 PM, Ronald Klop wrote: > > On Fri, 24 Jun 2011 15:50:09 +0200, Achilleas Mantzios > > <achill@matrix.gatewaynet.com> wrote: > > > >> =CE=A3=CF=84=CE=B9=CF=82 Friday 24 June 2011 13:00:24 =CE=BF/=CE=B7= Luis Neves =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >>> Hello, > >>> > >>> Is there any way to enable accept filters for a socket in =20 > Java/FreeBSD? > >>> I'm particularly interested in enabling the http accept filter. > >>> > >> > >> You can do it in OS level maybe. ipfw, pf etc... > >> I used to run ipfw, but now i switched to pf, it seems more powerfu= l. > > > > He means accf_http(9) I presume. That is something else than firewal= l > > filtering. > > That is correct. > > > >>> Any pointers? > >>> Thanks. > > > > I have never seen it in use and google is also silent about it. You > > could create a patch for openjdk or use some native code in java. > > Ok. > > > Out of curiosity: What are you doing that optimizing accept() is wor= th > > the effort? > > > I'm trying to optimize a webserver/adserver that has to deal with =20 > several thousand connections. I don't know if optimizing accept() is =20 > worth the effort, it seems that several webservers (Nginx, Varnish, =20 > Apache, Mongrel, Lighttpd) enable this when running on FreeBSD and I'm = =20 > hoping they do this for a good reason... but you make a good point, I =20 > should measure the effect that enabling accf_http has before going that= =20 > route. Did you already try a profiler like jprofiler or yourkit? Ronald.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.vxlzcsu08527sy>