Hibernate startup very slow

前端 未结 5 1301
遇见更好的自我
遇见更好的自我 2020-12-15 17:20

For some reason, the startup of my hibernate application is unbarrably slow. (up to 2 min) I have been thinking that the c3p0 configuration is plain wrong (related question)

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 17:46

    If it is abnormally slow then you probably have a lock in your application, or some resource blocks. In any case download VisualVM (JDK includes jconsole, dumbed down version of it) and check what your threads are doing, where they are stuck (threaddump) and if that doesn't give any quick answers, turn on the profiler.

提交回复
热议问题