db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendle...@amberpoint.com>
Subject Re: OutOfMemory
Date Fri, 04 Jul 2008 15:36:20 GMT
> I am getting into an OutOfMemory error in my case. Which is similar to 
> the case below. After examining the heap dump, I could find the 
> PreparedStatement is hold too many internal objects and might lead to 
> the MemoryLeak.
> I am not for sure whether it is caused by my closing the statement after 
> the long loop, thus causing the client side of derby cashing too many 
> things. Will that be the problem? Thanks.

What are the internal objects which are held? Since you've looked at
your memory dump, can you post the number of instances of the various
classes at the top of the list?

Also, can you re-arrange your application to be able to commit during
the loop? A single transaction cannot be arbitrarily large, as there
are some resources that cannot be freed until the commit occurs.



View raw message