-->
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: Large Schema / OutOfMemory / Tuning Tips
PostPosted: Thu Feb 23, 2006 9:07 pm 
Newbie

Joined: Thu Feb 23, 2006 8:30 pm
Posts: 2
We are using Hibernate against a legacy DB2/400 database with 1000 tables (the mapping files and POJOs are generated by reverse engineering).

However, creating the SessionFactory takes an excessive amount of time and usually dies with an OutOfMemory error. Now, I'm sure I can get around the mem issues by tuning the -X mem flags, but what are other peoples experiences with Hibernate and very large schemas?

How do you develop with this, if each unit test takes 5 minutes to start?


Top
 Profile  
 
 Post subject: Look here
PostPosted: Tue Feb 28, 2006 6:48 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
This discussion might help
http://forums.hibernate.org/viewtopic.php?p=2243331

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject: no fancy stuff
PostPosted: Tue Feb 28, 2006 6:59 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
O, and please make sure that H does not try to create or update DB schema, check value of hibernate.hbm2ddl.auto parameter

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 28, 2006 7:07 pm 
Newbie

Joined: Thu Feb 23, 2006 8:30 pm
Posts: 2
Thanks! I will follow up this in the other posting that you mentioned.

Note: it is NOT generating the schema, etc... the loading that it happening is legitimate.

We were able to trim down our Hiberante-mapped data model size to around 500 tables (the other section of the data model is not necessary for our project yet).

I have been able to concentrate on total loading time, etc.. I am using Hiberante behind Spring, with lots of Spring AOP poxies etc. Most of the time was being spent generating the CGLIB proxies for Spring AOP, not for Hiberante.

That being said, it still takes Hibernate around 30s to load 500 tables if I 'run' the app, and it takes around 60s to load if I 'debug' the app. So, the development cycle is very slow since I am always debugging, which takes over 1 minute to start.


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.