From owner-freebsd-java@FreeBSD.ORG Sun Jun 19 20:54:50 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DB7B106564A for ; Sun, 19 Jun 2011 20:54:50 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id DDD168FC18 for ; Sun, 19 Jun 2011 20:54:49 +0000 (UTC) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mx1.stack.nl (Postfix) with ESMTP id 476841DD670 for ; Sun, 19 Jun 2011 22:54:49 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 1677) id 3C63C17431; Sun, 19 Jun 2011 22:54:49 +0200 (CEST) Date: Sun, 19 Jun 2011 22:54:49 +0200 From: Jilles Tjoelker To: freebsd-java@freebsd.org Message-ID: <20110619205449.GC69133@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: java timezone data files X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jun 2011 20:54:50 -0000 Various Java ports want a "tzupdater" from Sun/Oracle which can be annoying to download. I noticed that Ubuntu/Debian do not need this tzupdater and have a package with timezone data files for Java. It turns out that these files can be generated on FreeBSD as well. A page about the Debian package is at http://packages.debian.org/sid/tzdata-java The interesting part is the .debian.tar.gz tarball in the "Download Source Package" section, for example http://ftp.de.debian.org/debian/pool/main/t/tzdata/tzdata_2011g-1.debian.tar.gz This contains a patch debian/patches/java.diff with additional files that Java needs and a file debian/rules which says how to build it. The original source simply contains what we have in head src/contrib/tzdata, plus three files solar87, solar88 and solar89. I am using openjdk6 because Debian also uses it for this purpose. Unfortunately, the port does not install javazic.jar but it is in the work directory as build/bsd-i586/btjars/javazic.jar . After copying our tzdata to a temporary directory and applying Debian's java.diff to it, the following command creates the data files (in tzgen-java/): java -jar \ /usr/ports/java/openjdk6/work/build/bsd-i586/btjars/javazic.jar \ -V 2011g -d tzgen-java \ africa antarctica asia australasia europe northamerica southamerica \ etcetera factory backward systemv pacificnew \ gmt jdk11_backward This gives a few error messages but generates files. These files are quite similar to those in /usr/local/jdk1.6.0/jre/lib/zi and Europe/Amsterdam even matches exactly. Replacing the files, java from jdk1.6.0 still appears to work correctly, although I do not know how to test this more thoroughly. -- Jilles Tjoelker From owner-freebsd-java@FreeBSD.ORG Mon Jun 20 11:07:06 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ACB8106566C for ; Mon, 20 Jun 2011 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D49D78FC18 for ; Mon, 20 Jun 2011 11:07:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5KB75ta098167 for ; Mon, 20 Jun 2011 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5KB75qp098165 for freebsd-java@FreeBSD.org; Mon, 20 Jun 2011 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Jun 2011 11:07:05 GMT Message-Id: <201106201107.p5KB75qp098165@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/156674 java [PATCH] java/openjdk6: make x11-fonts/dejavu a build d o ports/156319 java [patch] java/openjdk6 does not compile with previous l o ports/155967 java [bsd.java.mk] [patch] javavm wrapper insists on diablo o ports/155657 java java/openjdk6: missing symlink for include/freebsd/* o java/155107 java [patch] port java/diablo-jdk16 small cosmetic fix for o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c o ports/151923 java [patch] java/openjdk6: free and native openjdk bootstr o ports/151042 java [patch] java/openjdk6 Respect CC o ports/150142 java Not installed java/openjdk6 on file system zfs /usr/lo o java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/138729 java java/jdk16: setting 'export AWT_TOOLKIT=MToolkit' caus o java/138728 java java/jdk16: SIGSEGV in java runtime o java/128948 java java/jdk16 built from source can't bind a socket, but o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones f java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java f ports/113467 java Multiple "missing return value" errors building JDK on f java/112595 java Java appletviewer frequently hangs (kse_release loop) s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in 29 problems total. From owner-freebsd-java@FreeBSD.ORG Tue Jun 21 10:03:47 2011 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B29551065670 for ; Tue, 21 Jun 2011 10:03:47 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6958FC16 for ; Tue, 21 Jun 2011 10:03:46 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA13597; Tue, 21 Jun 2011 12:52:38 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1QYxdN-0008M1-T0; Tue, 21 Jun 2011 12:52:37 +0300 Message-ID: <4E0069E3.3040903@FreeBSD.org> Date: Tue, 21 Jun 2011 12:52:35 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110503 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jilles Tjoelker References: <20110619205449.GC69133@stack.nl> In-Reply-To: <20110619205449.GC69133@stack.nl> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-java@FreeBSD.org Subject: Re: java timezone data files X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 10:03:47 -0000 Just in case: http://article.gmane.org/gmane.os.freebsd.devel.java/11638 It would be cool if Someone could produce a proper solution at last. on 19/06/2011 23:54 Jilles Tjoelker said the following: > Various Java ports want a "tzupdater" from Sun/Oracle which can be > annoying to download. I noticed that Ubuntu/Debian do not need this > tzupdater and have a package with timezone data files for Java. It turns > out that these files can be generated on FreeBSD as well. > > A page about the Debian package is at > http://packages.debian.org/sid/tzdata-java > The interesting part is the .debian.tar.gz tarball in the "Download > Source Package" section, for example > http://ftp.de.debian.org/debian/pool/main/t/tzdata/tzdata_2011g-1.debian.tar.gz > This contains a patch debian/patches/java.diff with additional files > that Java needs and a file debian/rules which says how to build it. > The original source simply contains what we have in head > src/contrib/tzdata, plus three files solar87, solar88 and solar89. > > I am using openjdk6 because Debian also uses it for this purpose. > Unfortunately, the port does not install javazic.jar but it is in the > work directory as build/bsd-i586/btjars/javazic.jar . > > After copying our tzdata to a temporary directory and applying Debian's > java.diff to it, the following command creates the data files (in > tzgen-java/): > > java -jar \ > /usr/ports/java/openjdk6/work/build/bsd-i586/btjars/javazic.jar \ > -V 2011g -d tzgen-java \ > africa antarctica asia australasia europe northamerica southamerica \ > etcetera factory backward systemv pacificnew \ > gmt jdk11_backward > > This gives a few error messages but generates files. > > These files are quite similar to those in /usr/local/jdk1.6.0/jre/lib/zi > and Europe/Amsterdam even matches exactly. Replacing the files, java > from jdk1.6.0 still appears to work correctly, although I do not know > how to test this more thoroughly. > -- Andriy Gapon From owner-freebsd-java@FreeBSD.ORG Wed Jun 22 14:35:06 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF331106564A for ; Wed, 22 Jun 2011 14:35:06 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from fallbackmx09.syd.optusnet.com.au (fallbackmx09.syd.optusnet.com.au [211.29.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 6B6928FC1A for ; Wed, 22 Jun 2011 14:35:06 +0000 (UTC) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by fallbackmx09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p5MCUZ3P008676 for ; Wed, 22 Jun 2011 22:30:35 +1000 Received: from maxwell.mencon.com.au (c122-107-224-152.mckinn3.vic.optusnet.com.au [122.107.224.152]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p5MCUSPY013992 for ; Wed, 22 Jun 2011 22:30:29 +1000 Received: from starker.mencon.com.au (starker.mencon.com.au [203.2.73.60]) by maxwell.mencon.com.au (Postfix) with ESMTP id 8C3C65CED for ; Wed, 22 Jun 2011 22:30:28 +1000 (EST) Message-ID: <4E01E064.2070900@menhennitt.com.au> Date: Wed, 22 Jun 2011 22:30:28 +1000 From: Graham Menhennitt User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110614 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: where to install jar files on openjdk6? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 14:35:07 -0000 G'day all, I'm trying to run a Java based web app in Firefox on FreeBSD 8-stable using the OpenJDK6 port. The app uses a number of JAR files and I don't know where to install them. Under Linux running sun-java6-jre, the same files would get stored into /usr/java/packages/lib/ext and /usr/lib/jvm/java-6-sun/jre/lib/security. Could somebody please tell me what the equivalent locations are? Thanks in advance for your help, Graham From owner-freebsd-java@FreeBSD.ORG Thu Jun 23 13:22:00 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ADB6106564A for ; Thu, 23 Jun 2011 13:22:00 +0000 (UTC) (envelope-from jomarcar@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 424828FC1B for ; Thu, 23 Jun 2011 13:21:59 +0000 (UTC) Received: by vws18 with SMTP id 18so1854213vws.13 for ; Thu, 23 Jun 2011 06:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TvHgB9Drb4W/YZjlaA6f4sgnT5ytCvE9Wu4Gpct+0VM=; b=J5fxVABJpLA9VPqQMvyerNR3xEHjBZOGMbzHSPf80vTZIikzcynVIO9f6KkBODR/uz XLG4tb4rUMXJU2RaGnUzbQk1ZgO7qY/YMswh+4DqbBDVTtT9Ztkj+Q9/yGYul64dnr1o dRds5blhi0Y6o05NY1ttSmeX0fJaerOx1c/zY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=YBEhR9bNO3zjOPHNH3d3XUprAgqbHxu+qhsYRDsHIuT/6K1KlNkr8fvK7x8gMyCbwC ztIO5dYHgaeOLm1iMiTJK/VGC7uoNuAS5BdYm/CBNxWXbABa9VbgollL+Q2leJTOqHqb COlxvBSUL+j1Yhc79H281SYh+a89hBUCeiizM= MIME-Version: 1.0 Received: by 10.52.65.169 with SMTP id y9mr2849510vds.64.1308835318406; Thu, 23 Jun 2011 06:21:58 -0700 (PDT) Received: by 10.52.108.66 with HTTP; Thu, 23 Jun 2011 06:21:58 -0700 (PDT) Date: Thu, 23 Jun 2011 14:21:58 +0100 Message-ID: From: =?UTF-8?Q?Jos=C3=A9_Miguel_Mart=C3=ADnez_Carrasco?= To: freebsd-java@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: where to install jar files on openjdk6? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 13:22:00 -0000 Hi Graham the JAVA_HOME variable points (in my case) to /usr/local/openjdk6 you can also find java applications under /usr/local/share/java, actually I install my java applications there. Finally remember that you can put your jar files wherever you like as soon as you remember to add them to the CLASSPATH variable. Best. Jos=C3=A9 Miguel Mart=C3=ADnez Carrasco ------------------------------------------------ http://www.jm2dev.com http://identi.ca/jm2dev http://twitter.com/jm2dev http://uk.linkedin.com/in/josemiguelmtnzcarrasco On Thu, Jun 23, 2011 at 1:00 PM, wrote: > Send freebsd-java mailing list submissions to > =C2=A0 =C2=A0 =C2=A0 =C2=A0freebsd-java@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > =C2=A0 =C2=A0 =C2=A0 =C2=A0http://lists.freebsd.org/mailman/listinfo/free= bsd-java > or, via email, send a message with subject or body 'help' to > =C2=A0 =C2=A0 =C2=A0 =C2=A0freebsd-java-request@freebsd.org > > You can reach the person managing the list at > =C2=A0 =C2=A0 =C2=A0 =C2=A0freebsd-java-owner@freebsd.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-java digest..." > > > Today's Topics: > > =C2=A0 1. where to install jar files on openjdk6? (Graham Menhennitt) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 22 Jun 2011 22:30:28 +1000 > From: Graham Menhennitt > Subject: where to install jar files on openjdk6? > To: freebsd-java@freebsd.org > Message-ID: <4E01E064.2070900@menhennitt.com.au> > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > > G'day all, > > I'm trying to run a Java based web app in Firefox on FreeBSD 8-stable > using the OpenJDK6 port. The app uses a number of JAR files and I don't > know where to install them. Under Linux running sun-java6-jre, the same > files would get stored into /usr/java/packages/lib/ext and > /usr/lib/jvm/java-6-sun/jre/lib/security. Could somebody please tell me > what the equivalent locations are? > > Thanks in advance for your help, > =C2=A0 =C2=A0 Graham > > > ------------------------------ > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > End of freebsd-java Digest, Vol 427, Issue 3 > ******************************************** > From owner-freebsd-java@FreeBSD.ORG Fri Jun 24 10:35:00 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C10C1065686 for ; Fri, 24 Jun 2011 10:35:00 +0000 (UTC) (envelope-from luis.neves@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1491C8FC13 for ; Fri, 24 Jun 2011 10:34:59 +0000 (UTC) Received: by vxg33 with SMTP id 33so2715570vxg.13 for ; Fri, 24 Jun 2011 03:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=h+zPvWeEMRu64XB8YbbyeNoe3cY55zSMzMXImgBLZTU=; b=BOh12DV6qYRxBMlxA10eJXUAPz4/L1nRKPMyJ6G3qZE9ClfzcEehj+O7hCOqwv/Py0 J5w9kWTuYTt5F87IllOKawxn/3jGpWuIPft4uEksUNIyOg0nBK2+8sdbp2G1Xf8y7QeU Z/YBp8P2TIVVHAdUVYst+gnTU5rDXThClExL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hKhFQhSb6m92Jp6+56vCehbqEAnJCPrKdCRwpjMt5pe5vUwfDaoE+2AaUMOTCR7ggc 3rz2+xEn4FbqqavO1LosbsiuulPemOy6qtri4C+5kb8IiMXkq2+I5L3ryywVDyR7al6U WKEUQUTw2WW6oh6/Xzs/SR7CzXjvCBJ9OfjOs= MIME-Version: 1.0 Received: by 10.52.160.194 with SMTP id xm2mr3153651vdb.221.1308909624040; Fri, 24 Jun 2011 03:00:24 -0700 (PDT) Received: by 10.52.168.167 with HTTP; Fri, 24 Jun 2011 03:00:24 -0700 (PDT) Date: Fri, 24 Jun 2011 11:00:24 +0100 Message-ID: From: Luis Neves To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 10:35:00 -0000 Hello, Is there any way to enable accept filters for a socket in Java/FreeBSD? I'm particularly interested in enabling the http accept filter. Any pointers? Thanks. -- Luis Neves From owner-freebsd-java@FreeBSD.ORG Fri Jun 24 14:26:56 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7009106566C for ; Fri, 24 Jun 2011 14:26:56 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 5BBD58FC13 for ; Fri, 24 Jun 2011 14:26:55 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p5ODoAB5032151 for ; Fri, 24 Jun 2011 16:50:10 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p5ODo9Sg032150 for freebsd-java@freebsd.org; Fri, 24 Jun 2011 16:50:09 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Fri, 24 Jun 2011 16:50:09 +0300 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201106241650.09920.achill@matrix.gatewaynet.com> Subject: Re: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 14:26:57 -0000 =CE=A3=CF=84=CE=B9=CF=82 Friday 24 June 2011 13:00:24 =CE=BF/=CE=B7 Luis Ne= ves =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hello, >=20 > Is there any way to enable accept filters for a socket in Java/FreeBSD? > I'm particularly interested in enabling the http accept filter. >=20 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 powerful. > Any pointers? > Thanks. >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Fri Jun 24 15:02:47 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15A86106566C for ; Fri, 24 Jun 2011 15:02:47 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id C88EE8FC13 for ; Fri, 24 Jun 2011 15:02:46 +0000 (UTC) Received: from [212.182.167.131] (helo=sjakie.klop.ws) by smtp-out1.tiscali.nl with esmtp (Exim) (envelope-from ) id 1Qa7hB-0004XA-AK; Fri, 24 Jun 2011 16:49:21 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 1F032E199; Fri, 24 Jun 2011 16:49:10 +0200 (CEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Achilleas Mantzios" References: <201106241650.09920.achill@matrix.gatewaynet.com> Date: Fri, 24 Jun 2011 16:49:09 +0200 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: <201106241650.09920.achill@matrix.gatewaynet.com> User-Agent: Opera Mail/11.11 (FreeBSD) Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 15:02:47 -0000 On Fri, 24 Jun 2011 15:50:09 +0200, Achilleas Mantzios =20 wrote: > =CE=A3=CF=84=CE=B9=CF=82 Friday 24 June 2011 13:00:24 =CE=BF/=CE=B7 Lui= s 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 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 powerful. He means accf_http(9) I presume. That is something else than firewall =20 filtering. >> Any pointers? >> Thanks. I have never seen it in use and google is also silent about it. You could= =20 create a patch for openjdk or use some native code in java. Out of curiosity: What are you doing that optimizing accept() is worth th= e =20 effort? Ronald. From owner-freebsd-java@FreeBSD.ORG Fri Jun 24 20:40:09 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F25D106568A for ; Fri, 24 Jun 2011 20:40:09 +0000 (UTC) (envelope-from freebsd-java@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 323438FC14 for ; Fri, 24 Jun 2011 20:40:08 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QaCw6-0003B1-Tp for freebsd-java@freebsd.org; Fri, 24 Jun 2011 22:25:06 +0200 Received: from bl13-90-62.dsl.telepac.pt ([85.246.90.62]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jun 2011 22:25:06 +0200 Received: from luis.neves by bl13-90-62.dsl.telepac.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Jun 2011 22:25:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: Luis Neves Date: Fri, 24 Jun 2011 21:17:15 +0100 Lines: 45 Message-ID: References: <201106241650.09920.achill@matrix.gatewaynet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: bl13-90-62.dsl.telepac.pt User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 In-Reply-To: Subject: Re: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 20:40:09 -0000 On 06/24/2011 03:49 PM, Ronald Klop wrote: > On Fri, 24 Jun 2011 15:50:09 +0200, Achilleas Mantzios > wrote: > >> Στις Friday 24 June 2011 13:00:24 ο/η Luis Neves έγραψε: >>> Hello, >>> >>> Is there any way to enable accept filters for a socket in 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 powerful. > > He means accf_http(9) I presume. That is something else than firewall > 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 worth > the effort? I'm trying to optimize a webserver/adserver that has to deal with several thousand connections. I don't know if optimizing accept() is worth the effort, it seems that several webservers (Nginx, Varnish, Apache, Mongrel, Lighttpd) enable this when running on FreeBSD and I'm hoping they do this for a good reason... but you make a good point, I should measure the effect that enabling accf_http has before going that route. Thanks! -- Luis Neves From owner-freebsd-java@FreeBSD.ORG Fri Jun 24 21:22:33 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05F93106564A; Fri, 24 Jun 2011 21:22:32 +0000 (UTC) (envelope-from prvs=1156dbda56=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id EB6EA8FC12; Fri, 24 Jun 2011 21:22:31 +0000 (UTC) X-MDAV-Processed: mail1.multiplay.co.uk, Fri, 24 Jun 2011 22:10:54 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Fri, 24 Jun 2011 22:10:54 +0100 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50013860081.msg; Fri, 24 Jun 2011 22:10:53 +0100 X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=1156dbda56=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <9585F512F239475B8145C3D344F6EC62@multiplay.co.uk> From: "Steven Hartland" To: , , Date: Fri, 24 Jun 2011 22:11:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 Cc: Subject: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 21:22:33 -0000 We're trying to get our machines IPv6 enabled but in doing so this seems to break java apps using openjdk6 for UDP sends. The server seems quite happy to send and receive TCP packets on IPv6 socket that are bound to IPv4 addresses, but the same is not true for UDP. The socket bind works fine and the packets sent to the server arrive and are processed by the app but when it tries to reply using send the result is:- java.io.IOException: Invalid argument at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:629) using truss we see the following:- socket(PF_INET6,SOCK_DGRAM,0) = 20 (0x14) setsockopt(0x14,0x29,0x1b,0x7ffffedf0318,0x4,0x0) = 0 (0x0) setsockopt(0x14,0xffff,0x20,0x7ffffedf031c,0x4,0x0) = 0 (0x0) bind(20,{ AF_INET6 [3800::10:0:0:0]:20736 },28) = 0 (0x0) .. recvfrom(20,0x7ffffeaeb580,1460,0x0,0x7ffffeaed580,0x7ffffeaed5ac) ERR#60 'Operation timed out' .. sendto(20,"\M^?\M^?\M^?\M^?I\aMultiplay :: "...,82,0x0,{ AF_INET6 [3800::10:0:0:0]:20736 },0x1c) ERR#22 'Invalid argument' sockstat shows it binding correctly root java 894 21 tcp4 85.236.109.212:25675 *:* The following PR seems relevant but also seems to indicate it was fixed back in 2006 http://www.freebsd.org/cgi/query-pr.cgi?pr=92620 Setting -Djava.net.preferIPv4Stack=true does workaround the issue but when we come to support IPv6 as well as IPv4 this won't work. Note: net.inet6.ip6.v6only was set to the default 1 but changing it to 0 has no effect on the issue. An ideas why tcp in this setup works fine for udp fails only on send? Not sure which list is best for this so sorry about the cross posting. Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-java@FreeBSD.ORG Sat Jun 25 01:49:37 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96DE2106564A for ; Sat, 25 Jun 2011 01:49:37 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out0.tiscali.nl (smtp-out0.tiscali.nl [195.241.79.175]) by mx1.freebsd.org (Postfix) with ESMTP id 54F648FC0C for ; Sat, 25 Jun 2011 01:49:37 +0000 (UTC) Received: from [212.182.167.131] (helo=sjakie.klop.ws) by smtp-out0.tiscali.nl with esmtp (Exim) (envelope-from ) id 1QaI08-0001zB-7M; Sat, 25 Jun 2011 03:49:36 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 8576C1537; Sat, 25 Jun 2011 03:49:31 +0200 (CEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Luis Neves" References: <201106241650.09920.achill@matrix.gatewaynet.com> Date: Sat, 25 Jun 2011 03:49:30 +0200 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/11.11 (FreeBSD) Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 01:49:37 -0000 On Fri, 24 Jun 2011 22:17:15 +0200, Luis Neves =20 wrote: > On 06/24/2011 03:49 PM, Ronald Klop wrote: > > On Fri, 24 Jun 2011 15:50:09 +0200, Achilleas Mantzios > > 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. From owner-freebsd-java@FreeBSD.ORG Sat Jun 25 11:40:37 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B9F4106564A; Sat, 25 Jun 2011 11:40:37 +0000 (UTC) (envelope-from prvs=1157d11ea9=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 729F78FC0A; Sat, 25 Jun 2011 11:40:36 +0000 (UTC) X-MDAV-Processed: mail1.multiplay.co.uk, Sat, 25 Jun 2011 12:28:28 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Sat, 25 Jun 2011 12:28:28 +0100 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50013864816.msg; Sat, 25 Jun 2011 12:28:26 +0100 X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=1157d11ea9=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <512CB9DD5802403BA3ACC48FE3AE63F5@multiplay.co.uk> From: "Steven Hartland" To: "Matthias Andree" References: <9585F512F239475B8145C3D344F6EC62@multiplay.co.uk> <4E051576.7090505@gmx.de> Date: Sat, 25 Jun 2011 12:28:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 Cc: freebsd-net@freebsd.org, freebsd-java@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: IPv4 socket bind using IPv6 socket on openjdk6 breaks udp send X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 11:40:37 -0000 ----- Original Message ----- From: "Matthias Andree" I'm adding back in -java as based on you comments it may well be something in the jdk passing invalid values down to the kernel syscall. >> The socket bind works fine and the packets sent to the server arrive >> and are processed by the app but when it tries to reply using >> send the result is:- >> java.io.IOException: Invalid argument >> at java.net.PlainDatagramSocketImpl.send(Native Method) >> at java.net.DatagramSocket.send(DatagramSocket.java:629) >> >> using truss we see the following:- >> socket(PF_INET6,SOCK_DGRAM,0) = 20 (0x14) >> setsockopt(0x14,0x29,0x1b,0x7ffffedf0318,0x4,0x0) = 0 (0x0) >> setsockopt(0x14,0xffff,0x20,0x7ffffedf031c,0x4,0x0) = 0 (0x0) >> bind(20,{ AF_INET6 [3800::10:0:0:0]:20736 },28) = 0 (0x0) >> .. >> sendto(20,"\M^?\M^?\M^?\M^?I\aMultiplay :: "...,82,0x0,{ AF_INET6 >> [3800::10:0:0:0]:20736 },0x1c) ERR#22 'Invalid argument' > > You're trying to send to your own address, but you're likely not using > the loopback interface for that. Is that permitted by your firewall > configuration and routing? No I'm not its replying to the sender. In the java code we have:- socket.send( new DatagramPacket( data, data.length, src.getSocketAddress() ) ); Where src is the src packet. This works fine on IPv4 only machines and when the jdk is told to use only IPv4 stack. So its not a problem with the java code itself but could well be an issue with the > >> sockstat shows it binding correctly >> root java 894 21 tcp4 85.236.109.212:25675 *:* > > This is unrelated, as it has fd #21 not #20 as in the socket/bind/sendto > calls. You've quoted the wrong line from sockstat output. Oops sorry cut and paste error (wrong line) heres the correct line. root java 894 20 udp4 85.236.109.212:25675 *:* 21 is the tcp port created in the same manor (ipv6 socket) which works fine. > >> Note: net.inet6.ip6.v6only was set to the default 1 but changing >> it to 0 has no effect on the issue. > > You aren't using IPv4 mapped addresses, and you haven't stated whether > you're using wildcard listeners. Only in that case would it matter. I'm not, its a bound port, as shown above now I have the correct line ;-) > inet6(4) reads: > > IPV6CTL_V6ONLY (ip6.v6only) Boolean: enable/disable the prohib- > ited use of IPv4 mapped address on AF_INET6 sock- > ets. Defaults to on. The jvm automatically sets this on all sockets for compatibility for this exact reason. I'm not rulling out an issue with the IPv6 -> v4 routing in the kernel though. > Are you sure that's what you seeing? It's not a match for what you give > above, but anyways it's an implementation artifact because the tcp code > for v4 and v6 used to be shared and the udp code separate. Thats not how the jdk works, its ment to be 100% transparent but isn't. See the following for some interesting details:- http://diario.beerensalat.info/2008/10/12/java_and_ipv6_on_bsd.html > It is best to set up one IPv4 and one IPv6 listening socket. I don't believe there is any way to do this in java it either uses the IPv4 stack only or the IPv6 stack only hence relies on the kernel routing IPv4 packets through the IPv6 stack. Thats the reason the jdk explicitly enables this for all the ports it creates, which was added as a back port of the jdk7 fixes which can be seen here:- http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/openjdk6/files/patch-set > Check the URL above, perhaps that helps your understanding a bit. I > presume 3800::10:0:0:0 is your server? Not that I'm aware of, here's the output from ifconfig if anyone can tell me different, as I'm new to IPv6 and don't follow how its mapped yet. ifconfig igb0: flags=8843 metric 0 mtu 1500 options=1bb ether 00:25:90:2c:3c:b0 inet 85.236.109.212 netmask 0xffffff00 broadcast 85.236.109.255 inet6 fe80::225:90ff:fe2c:3cb0%igb0 prefixlen 64 scopeid 0x1 inet6 2001:4db0:20:2::1337 prefixlen 64 nd6 options=3 media: Ethernet autoselect (1000baseSX ) status: active igb1: flags=8802 metric 0 mtu 1500 options=1bb ether 00:25:90:2c:3c:b1 media: Ethernet autoselect (1000baseSX ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 nd6 options=3 This is currently running on 8.2-RELEASE with openjdk6-b22_5 Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-java@FreeBSD.ORG Sat Jun 25 14:14:58 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC38C106564A for ; Sat, 25 Jun 2011 14:14:58 +0000 (UTC) (envelope-from luis.neves@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 618AB8FC08 for ; Sat, 25 Jun 2011 14:14:58 +0000 (UTC) Received: by vxg33 with SMTP id 33so3623856vxg.13 for ; Sat, 25 Jun 2011 07:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Z0no/EjV37o3jnxhh55NNAVxIlAOgoy6cmacSgHAiMk=; b=iZu6YIlRj2556S/mDSraW++sgxbImx/koeIR/UCEhKrxaQBAkUQOTfKhqpvnYT2aNS PKD7JBrAUvjwOWYvzinuinT86N/RlEpsfxL+XtEdwtuXQSUIsJf835oZys8Sl8ck8Wdi pCDT8TaE4/WeIeXtaiAk2yM7Bbx9LNP2LivLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=yIPtPW60kt7pebVUBiSQLdOt9/+CeFx9us3zbf1U7DOe9SCKCRZ2Bv8ZOMuCE8lnIg xcvv6Y0rNjFXSCVv7F95f2OvKIey1JaKaxMHoIelkF+OUjOGHcNSxy6EcuzKXIKxNrcg 5NBkk6GhJCZYeMsI1v/Ty5CVuv0gLTrEu7R/4= MIME-Version: 1.0 Received: by 10.52.65.231 with SMTP id a7mr6384332vdt.61.1309011297561; Sat, 25 Jun 2011 07:14:57 -0700 (PDT) Received: by 10.52.168.167 with HTTP; Sat, 25 Jun 2011 07:14:57 -0700 (PDT) In-Reply-To: References: <201106241650.09920.achill@matrix.gatewaynet.com> Date: Sat, 25 Jun 2011 15:14:57 +0100 Message-ID: From: Luis Neves To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: How to socket accept filters? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2011 14:14:58 -0000 On Sat, Jun 25, 2011 at 2:49 AM, Ronald Klop wrote: > Did you already try a profiler like jprofiler or yourkit? I used the profiler that comes with VisualVM, it was good enough to identify the low hanging fruit. > Ronald. -- Luis Neves