From owner-freebsd-current@FreeBSD.ORG Fri Jun 18 16:59:26 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A920716A4CE for ; Fri, 18 Jun 2004 16:59:26 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BDEF43D46 for ; Fri, 18 Jun 2004 16:59:26 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i5IGsZr2006072; Fri, 18 Jun 2004 09:54:35 -0700 (PDT) Received: from [10.1.1.193] (nfw2.codefab.com [199.103.21.225] (may be forged)) (authenticated bits=0)i5IGsY9R028295; Fri, 18 Jun 2004 09:54:35 -0700 (PDT) In-Reply-To: <487C4BD2-C141-11D8-9D52-000393BB3E22@aps.org> References: <487C4BD2-C141-11D8-9D52-000393BB3E22@aps.org> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2C7643B6-C148-11D8-99B8-003065ABFD92@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Fri, 18 Jun 2004 12:54:33 -0400 To: Paul Dlug X-Mailer: Apple Mail (2.618) cc: freebsd-current@freebsd.org Subject: Re: Heap size limit in java X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 16:59:26 -0000 On Jun 18, 2004, at 12:05 PM, Paul Dlug wrote: [ ...not being able to mmap() more than 2 GB of memory... ] > Any help would be greatly appreciated. I imagine others have hit this > issue or will shortly. It's somewhat critical to getting large scale > java applications running on FreeBSD that the JVM be able to access > enough memory. One approach would be to split up the workload into two (or more) JVM's, each of which using less than the current 2GB limit. If that approach is not workable for your problem domain, then please consider the fact that no matter what changes are made, a 32-bit platform is never going to be able to give your JVM more than 4 GB. If you really have a need to exceed 2GB JVM heap size, you should seriously consider switching to a 64-bit platform. I don't know whether Java+FreeBSD+AMD64 is stable enough for production, so Sun SPARC or even a PowerPC-based Mac might be a better choice. -- -Chuck