Tomcat 6 and Permgen increase with redeployments

2007-10-01 Thread wild_oscar
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)

2007-09-07 Thread wild_oscar
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 {