Re: heap memory not released

From: Cris Daniluk (cris.danilu..mail.com)
Date: Thu Dec 22 2005 - 09:18:42 EST

  • Next message: Gentry, Michael \(Contractor\): "RE: heap memory not released"

    But is it the committed objects or the uncommitted objects that are
    causing the problem? I've had this happen when I've had tens of
    thousands of objects pulled into memory through funky joins, etc, but
    hundreds...

    Cris

    On 12/22/05, Gentry, Michael (Contractor) <michael_gentr..anniemae.com> wrote:
    > Can you do your commits using multiple DataContexts? That way you can
    > throw away the DCs you no longer need and the CDOs can release.
    >
    > -----Original Message-----
    > From: Oscar Maire-Richard [mailto:omair..idsa.es]
    > Sent: Thursday, December 22, 2005 6:29 AM
    > To: cayenne-use..bjectstyle.org
    > Subject: heap memory not released
    >
    >
    > Hi all,
    >
    > I am requesting my application for generating big amount of
    > CayenneDataObjects in a single http request but committing every a few
    > objects (i.e. 100). The problem is that for the whole long request all
    > the objects created stay in the heap memory and they are not released
    > for garbage collection, increasing the number until they produce a
    > system crash. It seems to be no dependent of cache configuration. I
    > tried DataRowStore.clear() unsuccessfully. I tried System.gc()
    > unsuccessfully, only whene I close the session the garbage collector is
    > able to remove the objects.
    > I am using a session bounded data context generated throw a
    > WebApplicationListener.
    >
    > Is there a way to force the release of committed new
    > CayenneDataObjects?
    >
    > Thanks in advance,
    >
    > Oscar Maire-Richard
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Dec 22 2005 - 09:18:44 EST