Re: java.lang.OutOfMemoryError: Java heap space
Re: java.lang.OutOfMemoryError: Java heap space
- Subject: Re: java.lang.OutOfMemoryError: Java heap space
- From: netBrackets <email@hidden>
- Date: Thu, 13 Sep 2007 14:22:35 -0700
I have a similar question to this. I know how to set the size of my WO application using the JavaMonitor command line arguments, but how do you do this from within the Eclipse/WOLips environment so that your development build can be given extra memory to run with too? Can you just add the argument to the arguments Text Field on the Eclipse Run Dialog?
Thanks,
Jeff
On Thursday, September 13, 2007, at 02:32PM, "Andrew Lindesay" <email@hidden> wrote:
>Hello Kirti;
>
>Is there some sort of stack-trace when the out-of-memory occurs?
>This might be good to see. Also, if you are able to reproduce this
>problem on a development machine, perhaps identify the area of the
>application where the problem *might* lie and put some considered log
>lines in that output the current free memory. This might help you
>understand what is going on. Another problem might be that you are
>doing an enormous fetch for more objects than memory can hold.
>Perhaps turn on EOF debug logging and watch the SQL queries to see if
>there are any really large queries being fired prior to the out of
>memory exception.
>
>cheers.
>
>> 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.
>> 4) You are adding these parameters in the wrong place and they are
>> not having any effect.
>
>___
>Andrew Lindesay
>technology : www.lindesay.co.nz
>business : www.silvereye.co.nz
>
>
> _______________________________________________
>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
>
>
_______________________________________________
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