I have a web service developped by spring/hibernate, and when I do deployment and undeployment on Tomcat 7 many times, I get an outOfMemoryError PermGen Memory leak.
By using java VisualVM, I noticed that the previous webappClassLoader are still kept in JVM, so they are not garbage collected.
What can be the reasons of this problem ?
How can I detect which objects still have reference to the application class loader or any object loaded by it ?
Thanks,