This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes speed up the init time of hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "speed up the init time of hibernate" Watch "speed up the init time of hibernate" New topic
Author

speed up the init time of hibernate

ola gerchikov
Greenhorn

Joined: Nov 04, 2006
Posts: 5
I use hibernate in my webapp on tomcat.

I notice that it takes a lot time to setup my webapp (when i first hit my servlet). It takes about 4 seconds to start tomcat, but it takes 14 seconds to initialize my webapp.

Can you please tell me how can I speed up the init time of my web app?

Here is my hibernate.cfg.xml file, I think it is very simple.



If you have any idea about how to speed up the init time of my web app, please let me know.
Thank you.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Creating a SessionFactory isn't that major an event. Are you sure the delay isn't Tomcat compiling a JSP or something?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: speed up the init time of hibernate
 
Similar Threads
c3p0 configuration
problem with hibernate application
com.mysql.jdbc.CommunicationsException MESSAGE: Communications link failure due to underlying except
problem with hibernate3-maven-plugin
Hibernate and MySQL connection issues