-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate 'Out of Memory' Problem
PostPosted: Sat Jan 24, 2004 10:14 am 
Newbie

Joined: Sat Jan 24, 2004 8:58 am
Posts: 4
Location: Bangladesh
We are developing a Banking Project. We used Hibernate 1.2 version and got good results in all functions except batch processing. When we do deposit, withdraw process then it works good. But when we start profit posting (for more than 1000 accounts) then Hibernate gives two errors:
1. Maximum Cursor Exceeds
2. Out of Memory

To get remedy from this problem we changed Hibernate 1.2 and installed Hibernate 2.1.

But its a great sorrow that, now Hibernate is working very bad. Now Hibernate 2.1 is giving "Out of Memory' problem after completing 20 or 30 operations. We checked it by JProfile and got after 30-40 operations it occupies 256 RAM and gives "Out of Memory' error. We are not understanding why this memory leak is happening.

Looking for a solution.

regards

tanver


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 24, 2004 10:24 am 
Regular
Regular

Joined: Tue Aug 26, 2003 3:09 pm
Posts: 58
We need more information than that.

http://www.hibernate.org/ForumMailinglists/HowToAskForHelp


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 24, 2004 11:12 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The Max cursor Excedeed is probably due to your driver (I had some trouble with Oracle some times ago)
The OutOfMemory is certainly due to a bad design in your app. Untill now every single outofmemory claims were due to either code errors or innapropriate designs. Hibernate had no memory leaks in all of these claims.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 24, 2004 11:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
If you load a lot of objects in the same session, be sure to evict your loaded objects after you don't need them anymore. Also check that the loaded object graph is not to large (use lazy loading etc)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.