How can creating the SessionFactory become slow after updating Hibernate?

Posted by DR on Stack Overflow See other posts from Stack Overflow or by DR
Published on 2010-05-05T16:20:03Z Indexed on 2010/05/05 16:48 UTC
Read the original article Hit count: 173

Filed under:
|

In my Java SE application I used Hibernate 3.4 and creating the SessionFactory took about 5 seconds.

Today I updated to Hibernate 3.5.1 and suddenly it takes over a minute.

What can be the cause of such a dramatic effect?

I tried different things the better part of the day and I have no clue...

Some data I collected

  • According to the profiler the most time is spent in PersisterFactory.createClassPersister and in that method ProxyFactory.createClass takes the most time.
  • The log shows nothing unusual
  • Changing hibernate.bytecode.use_reflection_optimizer makes no difference

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate