Re: java.lang.OutOfMemoryError: Java heap space
Re: java.lang.OutOfMemoryError: Java heap space
- Subject: Re: java.lang.OutOfMemoryError: Java heap space
- From: Ken Anderson <email@hidden>
- Date: Wed, 12 Sep 2007 22:29:34 -0400
In other words, it should go into VM Arguments, not Program Arguments.
Ken
On Sep 12, 2007, at 9:55 PM, Chuck Hill wrote:
4) You are adding these parameters in the wrong place and they are
not having any effect.
On Sep 12, 2007, at 6:42 PM, Galen Rhodes wrote:
1GB is a lot of memory. Most times you should be good with 512m
or even 256m. There's three things I could think of:
1) You're reading a BLOB from the database that is REALLY BIG.
2) You have a loop that isn't ending and it just keeps creating
objects over and over and over.
3) You have a recursive function that isn't ending and so it keeps
calling itself over and over.
--
Galen Rhodes
email@hidden
"There is no worse tyranny than to force a man to pay for what he
does not want merely because you think it would be good for him."
-- Robert Heinlein --
On Sep 12, 2007, at 9:28 PM, Kirti Roda wrote:
Thank you for your reply John.
I'v already given "-Xms125m -Xmx256m" these parameters while
running, even tried giving 1024m. Still there is same error.
Regards,
Kirti
On Sep 12, 2007, at 1:44 PM, webobjects-dev-
email@hidden wrote:
Message: 3
Date: Wed, 12 Sep 2007 14:43:25 -0500
From: "John Huss" <email@hidden>
Subject: Re: java.lang.OutOfMemoryError: Java heap space
To: "WebObjects (Group)" <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Pass this flag to the java process that is launching the
application
-Xmx256M
This sets the maximum memory size to 256 meg. You can choose
any value
though.
John
On 9/12/07, Kirti Roda <email@hidden> wrote:
I am new to WebObjects, I am trying to run existing applications
but is throwing the error
"com.webobjects.foundation.NSForwardException for
java.lang.OutOfMemoryError: Java heap space"
From the error message I can understand that it is going out of
memory, I tried giving 1024 of memory but could not help. Moreover
almost all the applications (not all as I am able to run
HelloWorld
successfully ) is throwing same error so I think this it is not
Application specific.
How could I solve it? Any help would be appreciated.
Thanks in advance.
Regards,
Kirti
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40thissmallworld.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden