From owner-freebsd-java Mon Nov 9 09:59:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA00389 for freebsd-java-outgoing; Mon, 9 Nov 1998 09:59:23 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA00380; Mon, 9 Nov 1998 09:59:19 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id KAA06210; Mon, 9 Nov 1998 10:59:03 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA04986; Mon, 9 Nov 1998 10:59:02 -0700 Date: Mon, 9 Nov 1998 10:59:02 -0700 Message-Id: <199811091759.KAA04986@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mahadevan Iyer Cc: Nate Williams , java-port@FreeBSD.ORG, freebsd-java@FreeBSD.ORG, saurabh@internetdevices.com, namit@internetdevices.com Subject: Re: Possible Bug in JVM socket code on FreeBSD, java.net.Socket In-Reply-To: <36472A9A.A1661625@internetdevices.com> References: <36381ADB.DCCDAB3D@internetdevices.com> <199811091741.KAA04801@mt.sri.com> <36472A9A.A1661625@internetdevices.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > For what it's worth, I have tracked down this 'bug' and now know what > > the problem is. It's related to the select code used in FreeBSD > > limiting the JVM to 255 *total* file descriptors. Unfortunately, I > > don't (yet) have a way to increase the number of descriptors > > arbitrarily, so until we come up with a solution the limit is 250. > > > > Just to confirm that I understand the problem > > The select code used in the JVM limits the *total* file > descriptors > This is not a problem with the FreeBSD socket lib > > This is not a OS limit that can be tweaked. It is, but I don't know how to workaround the 'basic 255' limit in the JDK *code*. The OS is fully capable of handling thousands of FD's, but I do not (yet) know how to make the JDK source code take advantage of this. Hopefully I'll know soon though.... :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message