-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate / MySQL Memory leak ?
PostPosted: Thu May 04, 2006 4:11 pm 
Newbie

Joined: Thu May 04, 2006 3:53 pm
Posts: 11
Hi,

I am running Hibernate Entity Manager 3.1beta7 with MySQL v5. (using either 3.1.12 and 5-beta J/Connector JDBC Driver, same error).

What happens is that during a very long transaction (batch import), I get a OutOfMemory exception.

=== Yes, I do flush() and clear() regularly, every 10,000 entries, but I also tried with 1000 and 500.
I also disabled both query level cache and 2nd-level cache
====

The weird thing is that when doing the same with Derby DB, I get no exception.
So
1) The problem doesn't seem to come from my code
2) The problem doesn't seem to come from your code
=> The problem might be a the JDBC MySQL Memory Leak bug

Googling gives that : http://bugs.mysql.com/bug.php?id=5022

So, what appears here is that the MySQL bug only appears when the Statement is NOT closed(), which should always be done.

That's why I ask something on this forum :
Does hibernate correctly closes Statements ? I tried searching in the code, but got lost....

Thanks a lot for your help,
Sami Dalouche


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.