• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.lang.outofmemory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.outofmemory


  • Subject: Re: java.lang.outofmemory
  • From: Art Isbell <email@hidden>
  • Date: Tue, 7 Mar 2006 13:11:12 -1000

On Mar 7, 2006, at 1:00 PM, Paul Lynch wrote:

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.

But if snapshot reference counting is working as advertised, dereferencing the only editing context containing references to the snapshots should release them.


it may also be acceptable to use dispose(),

dispose() should be invoked when an editing context is about to be garbage-collected, so sending an explicit dispose() message seems redundant.


but invalidateAllObjects(), and its variants, are the only way to flush the snapshots.

Other than removing any references which doesn't involve the invalidateAllObjects() overhead of converting all of the objects to faults. So invoking invalidateAllObjects() seems like a waste to me.


Aloha,
Art

_______________________________________________
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


  • Follow-Ups:
    • Re: java.lang.outofmemory
      • From: Paul Lynch <email@hidden>
References: 
 >java.lang.outofmemory (From: "Randy Wigginton" <email@hidden>)
 >Re: java.lang.outofmemory (From: Jacky Gagnon <email@hidden>)
 >Re: java.lang.outofmemory (From: Paul Lynch <email@hidden>)

  • Prev by Date: RE: java.lang.outofmemory
  • Next by Date: Re: java.lang.outofmemory
  • Previous by thread: Re: java.lang.outofmemory
  • Next by thread: Re: java.lang.outofmemory
  • Index(es):
    • Date
    • Thread