Heap size limit

Greg Lewis glewis at eyesbeyond.com
Sat May 22 10:50:03 PDT 2004


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 at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list