Re: OutOfMemoryError: reading a large number of objects one by one

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon May 14 2007 - 14:05:59 EDT

  • Next message: Tomi N/A: "Re: OutOfMemoryError: reading a large number of objects one by one"

    On May 14, 2007, at 8:57 PM, Tomi N/A wrote:

    > mca = (MyClassA)
    > Util.getCommonContext().objectFromDataRow(SpisUtil.class, dr, false);

    This is the source of the memory leak. You may want to replace the
    context after processing an X number of rows.

    (btw, Cayenne 3.0 nightly's fix that, but you mentioned you don't
    want to upgrade just yet)

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon May 14 2007 - 14:06:30 EDT