From owner-freebsd-java@FreeBSD.ORG Sat May 22 10:50:03 2004 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 5CB0216A4CF for ; Sat, 22 May 2004 10:50:03 -0700 (PDT) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43D6443D1F for ; Sat, 22 May 2004 10:50:03 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from [198.60.22.206] (helo=mgr6.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1BRadE-0006nN-02; Sat, 22 May 2004 11:50:00 -0600 Received: from [166.70.56.15] (helo=misty.eyesbeyond.com) by mgr6.xmission.com with esmtp (Exim 4.31) id 1BRadC-0004KK-SQ; Sat, 22 May 2004 11:50:00 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) i4MHnvLd061857; Sat, 22 May 2004 11:49:57 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.11/8.12.11/Submit) id i4MHnucx061856; Sat, 22 May 2004 11:49:56 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 22 May 2004 11:49:56 -0600 From: Greg Lewis To: Paul Dlug Message-ID: <20040522174956.GA61678@misty.eyesbeyond.com> References: <09BFCAF4-952D-11D8-822D-000393BB3E22@aps.org> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <09BFCAF4-952D-11D8-822D-000393BB3E22@aps.org> User-Agent: Mutt/1.4.2.1i Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr6.xmission.com X-Spam-Level: X-Spam-Status: No, hits=-0.9 required=8.0 tests=BAYES_10 autolearn=no version=2.63 X-SA-Exim-Connect-IP: 166.70.56.15 X-SA-Exim-Mail-From: glewis@eyesbeyond.com X-SA-Exim-Version: 4.0 (built Sat, 24 Apr 2004 12:31:30 +0200) X-SA-Exim-Scanned: Yes (on mgr6.xmission.com) cc: freebsd-java@FreeBSD.org Subject: Re: Heap size limit 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: Sat, 22 May 2004 17:50:03 -0000 On Fri, Apr 23, 2004 at 09:49:27AM -0400, Paul Dlug wrote: > I'm trying to start a JVM with a large heap size and getting an error > message: > > java -Xms256m -Xmx2024m > Error occurred during initialization of VM > Could not reserve enough space for object heap > > I tried a bunch of different sizes and anything under 2024m works just > fine so this appears to be a hard limit. I've tried changing a few > system parameters but can't seem to stumble on the right one. Can > someone help me out with this? Obviously I'm a long way behind on freebsd-java, but I'm catching up now... My strong suggestion is that you're hitting the maximum amount of memory that your user can mmap. I'm not exactly sure what setting dictate that, but its almost certainly what you're running into. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org