cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: OutOfMemoryError: reading a large number of objects one by one
Date Mon, 14 May 2007 18:05:59 GMT

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


Mime
View raw message