From owner-freebsd-java@FreeBSD.ORG Thu Aug 28 02:05:15 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 717A016A4BF for ; Thu, 28 Aug 2003 02:05:15 -0700 (PDT) Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D51243FAF for ; Thu, 28 Aug 2003 02:05:14 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh by axl.seasidesoftware.co.za with local (Exim 4.22) id 19sIiO-000MEw-BR for freebsd-java@FreeBSD.org; Thu, 28 Aug 2003 11:05:12 +0200 Date: Thu, 28 Aug 2003 11:05:12 +0200 From: Sheldon Hearn To: freebsd-java@FreeBSD.org Message-ID: <20030828090512.GB83970@starjuice.net> Mail-Followup-To: freebsd-java@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Sender: Sheldon Hearn Subject: FreeBSD vs Windows 2000 "Advanced" Server X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 09:05:15 -0000 Hi folks, The next time someone says Windows is a better platform for running Java than FreeBSD is, consider this. The test class at the bottom of this message can fire about 1,800 [1] threads on my FreeBSD 5.1-CURRENT box, with the native jdk-1.4.1. My box is a PIII with 1G of RAM. The same class on a Windows 2000 Advanced Server with the Sun jdk-1.4.1 (and 1.4.2) can't fire more than about 130 threads. This is a dual-Xeon with 4G of RAM. Maybe there's some magic you can fiddle in the registry that tells the lame OS to allow a process to fire more threads. But I couldn't find it in 4 hours of searching on Microsoft and Google. Ciao, Sheldon. [1] Interestingly enough, this doesn't seem to be limited by the kern.threads.max_threads_per_proc sysctl.