users@glassfish.java.net

Re: Could not reserve enough space for object heap Could not create the Java vi

From: Jacob Kessler <Jacob.Kessler_at_Sun.COM>
Date: Mon, 13 Oct 2008 16:02:43 -0700

That does seem to be an odd error, but there are several things that
could be going wrong:

First, check to make sure that you actually have the 1.2GB of memory
free when you try to start Glassfish. Since you just added memory,
though, that's unlikely to be the cause.

Second, check how much memory the Java process is using, since while
heap space is most of the JVM's memory use, it's not all of it. Under XP
(a 32-bit operating system), a single process can't address more than
2GB of memory, though the OS itself uses some cheating to detect out to
3.5GB. Anyway, it's possible that you are running into that limit,
especially on the Intel server.

Third, check to see if your motherboard does memory partitioning (I
think that that is what it is called...) or not. Sometimes, MBs will
just declare "this core gets access to these memory ranges, this core
gets access to those memory ranges". That means that a single process
can't address more than one core's worth of memory at a time, which
might also be happening.

I can confirm that it's not a GlassFish-specific issue, as I've started
glassfish instances with -Xmx3G without a problem on 64-bit OSes, and I
see no reason why the JVM would have problems going out to the maximum
addressable memory size on a 64-bit machine, given the physical memory
to play with.



glassfish_at_javadesktop.org wrote:
> Ok, guys top marks for who gets this one.
>
> I had to servers one is an AMD Quad Core, the other one is an Intel.
> They both had 3 GB RAM and were running glassifsh with -Xmx1150m (maximum that allowed)
> I upgrade both to 4Gb RAM and now the Intel takes to -Xmx1500 but the AMD gives the same error if going beyond -Xmx1150m
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
> -and bye bye-
>
> Both on windows XP (who says I only have 3.5 GB)
>
> Ok guys
> [Message sent by forum member 'pablopina' (pablopina)]
>
> http://forums.java.net/jive/thread.jspa?messageID=306046
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>