How to handle the Java Heap error message after starting JBoss after TRIRIGA Upgrade?

133 views
Skip to first unread message

Kamal

unread,
Dec 16, 2009, 9:01:30 PM12/16/09
to triDeveloper
After upgrading TRIRIGA,
I tried to restart the jboss, but it got stuck with following error:

Error occurred during initialization of VMCould not reserve enough
space for object heap. Could not create the Java virtual machine.

I have connected the remote desktop to upgrade TRIRIGA systlem.

Would anybody have any idea where do I need to change to address this
error?

Eric

unread,
Dec 16, 2009, 9:55:28 PM12/16/09
to triDeveloper, kml.s...@gmail.com
In run.bat (or run.sh, if Unix) there is a line that looks something
like this:

set JAVA_OPTS=-Xms1236M -Xmx1236M -XX:MaxPermSize=256M

the -Xms setting is the initial Java heap size, and -Xmx is the
maximum heap size. In your case, this error typically means that the
initial size (-Xms) is too large for the amount of available memory
you have in your environment; you can try reducing the allocated heap
size to start the app server.

Mad Snarl

unread,
Dec 17, 2009, 10:15:59 PM12/17/09
to tridev...@googlegroups.com, kml.s...@gmail.com
i have also found that going above 1024mb in java causes errors regardless if i have 3GB of ram
 
> Date: Wed, 16 Dec 2009 18:55:28 -0800
> Subject: [triDeveloper] Re: How to handle the Java Heap error message after starting JBoss after TRIRIGA Upgrade?
> From: eric....@gmail.com
> To: tridev...@googlegroups.com
> CC: kml.s...@gmail.com
> --
>
> You received this message because you are subscribed to the Google Groups "triDeveloper" group.
> To post to this group, send email to tridev...@googlegroups.com.
> To unsubscribe from this group, send email to trideveloper...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/trideveloper?hl=en.
>
>


Windows Live: Keep your friends up to date with what you do online.

Mad Snarl

unread,
Dec 17, 2009, 10:26:59 PM12/17/09
to tridev...@googlegroups.com, kml.s...@gmail.com
please read
 "Ultimately you always have a finite max of heap to use no matter what platform you are running on. In Windows 32 bit this is around 2gb (not specifically heap but total amount of memory per process). It just happens that Java happens to make the default smaller (presumably so that the programmer can't create programs that have runaway memory allocation without running into this problem and having to examine exactly what they are doing)."
 start with 1024 and try moving up by 256 till it dies again.
From: hasama...@hotmail.com
To: tridev...@googlegroups.com
CC: kml.s...@gmail.com
Subject: RE: [triDeveloper] Re: How to handle the Java Heap error message after starting JBoss after TRIRIGA Upgrade?
Date: Thu, 17 Dec 2009 20:15:59 -0700
Get a great deal on Windows 7 and see how it works the way you want. See the Windows 7 offers now.
Reply all
Reply to author
Forward
0 new messages