-->
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.  [ 3 posts ] 
Author Message
 Post subject: Really slow mapping loads
PostPosted: Thu Apr 14, 2005 11:58 am 
Newbie

Joined: Sat Jun 19, 2004 12:24 pm
Posts: 5
Location: Leeds, UK
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0 final

Mapping documents:
Lots of...

Problem:
Hibernate 2.1.8 worked fine and loaded my mappings in about 2 seconds. There are 127 of these in separate files, BTW.

Now I upgrade to hibernate 3 and each mapping takes a second or so to load, the whole thing takes 2 minutes or more to start up.

The crazy thing is, the processor is idling the whole time. The process is a normal priority and there is no iowait showing up either, the machine is just idling. It's like the thread is sleeping or blocking for some reason but I have no idea what.

Does anyone have any ideas how I can track down this problem?

I have tried stripping down the application so all it does is:

Configuration cfg = new Configuration ()
.addResource ("mapping1.hbm.xml")
.addResource ("mapping2.hbm.xml")
// etc
.addResource ("mapping100.hbm.xml");
SessionFactory sf = cfg.buildSessionFactory ();

And it is still going slowly.

I have tried running it on a different machine with a very different environment and it still does it.

Both machines are running Sun's latest JVM.


Top
 Profile  
 
 Post subject: Solved myself
PostPosted: Thu Apr 14, 2005 12:00 pm 
Newbie

Joined: Sat Jun 19, 2004 12:24 pm
Posts: 5
Location: Leeds, UK
Ok I've just solved this seconds after posting... ;-)

It's looking on the net for the 2.0 DTD I think, not exactly sure but it's something like that.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 1:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes - remember to read the migration guide for H2 to H3 (available on hibernate.org doc page)

_________________
Max
Don't forget to rate


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