-->
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: Performance problem.
PostPosted: Sun May 15, 2005 1:29 pm 
Newbie

Joined: Sun May 15, 2005 1:24 pm
Posts: 11
Hi,

I just upgraded hibernate from 2.1 to 3.03 but have a serious performance issue when start up tomcat with hibernate spring.

It took me 6 secconds to startup the tomcat before then upgrade, now it is over 20 seconds. I noticed that mapping class took much longer than before. it is over .5 second for each table.

Does anybody have this issue? I'm using tomcat 5.0.28 + Sping 1.2 final + Hibernate 3.03

Thanks a lot.
Henry


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 16, 2005 7:47 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you have a wrong DTD declaration, check the forum or the migration guide for more details

_________________
Emmanuel


Top
 Profile  
 
 Post subject: THanks!
PostPosted: Mon May 16, 2005 11:49 am 
Newbie

Joined: Sun May 15, 2005 1:24 pm
Posts: 11
Thank you for the reply. You are right. Actually I found this out late in the night yesterday. After I change "hibernate-mapping-2.0.dtd" to "hibernate-mapping-3.0.dtd", it is almost as fast as before.


Henry


Top
 Profile  
 
 Post subject: how to minimize sessionFactory build time
PostPosted: Tue May 17, 2005 6:32 pm 
Regular
Regular

Joined: Fri Oct 01, 2004 2:19 am
Posts: 111
Location: Melbourne, Australia
I am using Hibernate 3.0.3 and the startup time is slow (well, too slow
for repetitive junit tests). I am pointing to the right DTD so that's not
the issue - for me it seems that buildSessionFactory takes forever
(building it for 34 mapped classes takes 2 seconds for creating the
configuration and the sessionFactory takes 12 seconds!?).

Is there a way to speed this up? Can the session factory data structures
be serialized or something so that for running a series of tests repeatedly,
this will not become prohibitively long?

_________________
Cheers,

Bonny

please 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.  [ 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.