• 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:54:58 -1000

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

Snapshots are stored at a lower level than editing context, so they won't be released.

Your statement seems to contradict <http://developer.apple.com/ documentation/WebObjects/WhatsNew5.2/index.html>:


"The memory allocated for the database row-level snapshots that corresponds to garbage-collected EOEnterpriseObjects is released some time after the EOEnterpriseObjects have been garbage collected. Although generally unnecessary, you can use processRecentChanges to force an EOEditingContext to decrement the snapshot reference count on those snapshots that are no longer needed. EODatabase still holds strong references to row-level snapshots and maintains a reference count for each row and its associated EOGlobalID object."

I forget where they are stored, but it's possibly the parent object store.

EODatabase

If you're using the default object store strategy, then all sessions will be sharing the same parent, and snapshots may be retained.

The only snapshots retained should be those referenced by objects in editing contexts other than the one being dereferenced after the fetched objects have been processed. But those objects fetched into the temporary editing context being used in this case and that haven't been fetched into any other editing context should be free when their editing context is dereferenced (well, when Java's garbage collector gets around to it). After these objects are freed, their snapshots should be free (again, when Java's garbage collector gets around to it).


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: Denis Stanton <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>)
 >Re: java.lang.outofmemory (From: Art Isbell <email@hidden>)
 >Re: java.lang.outofmemory (From: Paul Lynch <email@hidden>)

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