RE: heap memory not released

From: Gentry, Michael \(Contractor\) ("Gentry,)
Date: Thu Dec 22 2005 - 09:01:11 EST

  • Next message: Cris Daniluk: "Re: CLOB issue with Oracle"

    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:01:15 EST