-->
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.  [ 2 posts ] 
Author Message
 Post subject: OutOfMemoryException with bidirectional many-to-many
PostPosted: Mon May 21, 2007 10:39 am 
Newbie

Joined: Fri Oct 20, 2006 5:22 pm
Posts: 3
Location: Newton, NJ
Hibernate v2.3.0. MySQL v5.0.18. WinXP SP2. Building bidirectional many-to-many, two tables plus mapping table. After approximately 100 objects, each additional object added in a given transaction results in reducing approximately 1% of the 60MB heap. Heap goes to zero, OutOfMemoryException occurs. These are not large objects, neither table. Have taken jmap and crash heap dumps. Analyzed with jhat. Nothing extraordinary. jhat not terribly helpful in that it doesn't show aggregate memory usage of any class. Any obvious cause of this heap exhaustion? Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 7:53 am 
Newbie

Joined: Fri Oct 20, 2006 5:22 pm
Posts: 3
Location: Newton, NJ
Update to the above.

When lazy loading is used, the heap exhaustion is almost eliminated. It appears that non-lazy loading causes Hibernate to consume heap at a pace that exhausts "normal" heap sizes.

Thanks for all the help from the Hibernate team! This kind of support is what makes open source products so easy to use!


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

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.