Re: heap memory not released

From: Cris Daniluk (cris.danilu..mail.com)
Date: Thu Dec 22 2005 - 11:05:26 EST

  • Next message: Jonathan Carlson: "Somewhat related..."

    Ahhhhhh. Read wrong. Why not get the list of uncommitted objects
    before commit, then remove that list from the object store after?
    Discarding the context may cause tooo much to be thrown away.

    On 12/22/05, Gentry, Michael (Contractor) <michael_gentr..anniemae.com> wrote:
    > It sounded to me like Oscar was doing more than 100 total, but was doing
    > a commitChanges every 100 or so and wants to clear out the committed
    > objects then.
    >
    > By the way, Oscar, what is your Java memory maximum set to? Maybe you
    > have that set really low, too.
    >
    > /dev/mrg
    >
    >
    > -----Original Message-----
    > From: Cris Daniluk [mailto:cris.danilu..mail.com]
    > Sent: Thursday, December 22, 2005 9:19 AM
    > To: cayenne-use..bjectstyle.org
    > Subject: 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 - 11:05:28 EST