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.