Tomcat 6 and Permgen increase with redeployments
Although I've read a lot in the past week about Permgen and the problems of some libs, I haven't been able to find a solution to my problem. I'm running Tomcat 6 and an application with (among others): - Struts 2 - Hibernate - Tiles 2 - Log4j - ant Redeployment with ant (or the tomcat manager)
Closing Hibernate's SessionFactory when undeploying (or when is a filter destroyed)
I've implemented a struts 2 interceptor to create hibernate's SessionFactory and manage sessions. My session factory is wrapped in a static class: public static SessionFactory factory; static { try {