RE: java.lang.outofmemory
RE: java.lang.outofmemory
- Subject: RE: java.lang.outofmemory
- From: "Randy Wigginton" <email@hidden>
- Date: Tue, 7 Mar 2006 18:10:46 -0500
At the risk of appearing foolish to a lot
of people… where do I adjust the memory setting in XCode? I’ve gone to the
target, and pasted the command line changes into the “pure java” field. But my
startup parameters don’t change. Where does it really belong?
From: webobjects-dev-bounces+cawineguy=email@hidden
[mailto:webobjects-dev-bounces+cawineguy=email@hidden] On Behalf Of Robert Walker
Sent: Tuesday, March 07, 2006 5:58
PM
To: WebObjects Dev Apple
Subject: Re: java.lang.outofmemory
There are a number of things that can be done to resolve this.
1. Allow your application to use more memory by increasing the heap
size.
[This is good if you are running your app with too little
heap space]
2. Make your application use less memory by qualifying your fetches
more precisely.
[May not be possible in some cases]
3. Make your application more efficient by using "Raw Row
Fetching"
[Uses less memory than "real" objects]
[Makes your code database specific in some cases,
but allows "real" fetch limits]
[Can still make "real" enterprise objects
from raw rows when needed]
On Mar 7, 2006, at 5:10 PM, Randy Wigginton
wrote:
Hello,
My program
loads a great deal of data from the database. I process it, then attempt
to “free” the memory. My code looks vaguely like this:
For (all
objects) {
EOEditingContext
tmp = new EOEditingContext();
<load
objects from tmp with a fetch specification>
tmp.invalidateAllObjects();
tmp = null;
System.gc();
}
Even with
this, I’m running out of memory. Any hints on making EO throw away
everything it knows about?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription:
|
_______________________________________________
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