Re: java.lang.outofmemory
Re: java.lang.outofmemory
- Subject: Re: java.lang.outofmemory
- From: Paul Lynch <email@hidden>
- Date: Tue, 7 Mar 2006 23:00:01 +0000
On 7 Mar 2006, at 22:46, Jacky Gagnon wrote:
First, its not a good idea to use invalidateAllObjects() to free
memory; call saveChanges more frequently or just fetch what you need.
saveChanges() doesn't release snapshots, unfortunately, which I would
surmise is the problem.
If you just want to get rid of pending changes, then saveChanges() or
revert() are both suitable ways of doing this; it may also be
acceptable to use dispose(), which will release any EOs in the
editing context - but invalidateAllObjects(), and its variants, are
the only way to flush the snapshots.
Expanding the java VM size is a good alternative.
Paul
_______________________________________________
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