Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2004 11:49:56 -0600
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Paul Dlug <paul@aps.org>
Cc:        freebsd-java@FreeBSD.org
Subject:   Re: Heap size limit
Message-ID:  <20040522174956.GA61678@misty.eyesbeyond.com>
In-Reply-To: <09BFCAF4-952D-11D8-822D-000393BB3E22@aps.org>
References:  <09BFCAF4-952D-11D8-822D-000393BB3E22@aps.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040522174956.GA61678>