Re: java.lang.OutOfMemoryError: Java heap space
Re: java.lang.OutOfMemoryError: Java heap space
- Subject: Re: java.lang.OutOfMemoryError: Java heap space
- From: Andrew Lindesay <email@hidden>
- Date: Fri, 14 Sep 2007 07:32:01 +1200
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