While trying to do hot-deploy, Hibernate doesn't shutdown correctly keeping classes loaded and not letting us do redeploys. This is particularly bad in a production environment, since we can't always restart tomcat to apply hotfixes to our webapps.
Attachaments:
-
"Webapplication1.zip" should reproduce the problem, tested on tomcat 7.0.59 and Tomcat 8.0.21.
-
"hibernate_after_undeploy.zip" is a memory dump done after single deploy followed by a undeploy
-
"hibernate.png" shows how the hibernate related classes are currently after several deploys.
-
"hibernate_after_five_more_deploys.png" same run as "hibernate.png" but after done five more deploys
We upgraded to Hibernate 4.3.8 recently, didn't have this problem on Hibernate 3.6.10
|