AW: AW: Out of memory exception when creating a large number of objects

From: Peter Schröder (Peter.Schroede..reenet-ag.de)
Date: Mon Jul 23 2007 - 10:16:15 EDT

  • Next message: Andrus Adamchik: "Re: AW: AW: Out of memory exception when creating a large number of objects"

    afaik that this was a bug related to weak-references

    -----Ursprüngliche Nachricht-----
    Von: Jean-Paul Le Fèvre [mailto:jean-paul.lefevr..ea.fr]
    Gesendet: Montag, 23. Juli 2007 16:05
    An: use..ayenne.apache.org
    Betreff: Re: AW: Out of memory exception when creating a large number of objects

    On Monday 23 July 2007 15:53, Peter Schröder wrote:
    > i think that this is a dataContext-issue. every commited object stays in
    > the context, so you probably should create a new dataContext at some point.

    Sure ! but is it a bug or a feature ?

    The following methods :
    ctxt.getObjectStore().unregisterNewObjects();
    ctxt.getObjectStore().startTrackingNewObjects();
    are meant to avoid the problem but it turns out that they likely forget
    references in some unknown places.

    -- 
    ___________________________________________________________________
    

    Jean-Paul Le Fèvre * Mail : LeFevr..onteny.org



    This archive was generated by hypermail 2.0.0 : Mon Jul 23 2007 - 10:16:19 EDT