Re: java.lang.OutOfMemoryError: Java heap space
Re: java.lang.OutOfMemoryError: Java heap space
- Subject: Re: java.lang.OutOfMemoryError: Java heap space
- From: Kirti Roda <email@hidden>
- Date: Thu, 13 Sep 2007 10:46:56 -0700
Thank you for your replies friends!!
Actually it is a project freshly checked out from repository which is
running on other's machine properly. So the internal project error is
unlikely to happen (I even checked the functions / recursions and DB
access). How ever the case of adding these parameter in proper place
is possible, Actually I am running a script to run the application
which is not very clear to me
it is
#!/bin/sh
cd <application path>/build/Development/ <PROJECT NAME>.woa
./<PROJECT NAME> -Djava.net.preferIPv4Stack=true -
WOApplicationBaseURL / -WOApplicationName <PROJECT NAME> -WOPort 8500
-WOAutoOpenInBrowser NO -WOCachingEnabled NO -WODebuggingEnabled YES -
Xms125m -Xmx1024m -EOAdaptorDebugEnabled NO -WOLifebeatEnabled NO -
WOMonitorEnabled NO -WOInstanceNumber 1 -WOAllowRapidTurnaround NO
Do I have to add it to some other place to give it to VM?
Waiting for your reply.
Thanks and Regards,
Kirti
On Sep 12, 2007, at 7:29 PM, Ken Anderson wrote:
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:
@gmail.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