When I try to stop tomcat8 on Java 8, I get a few memory leaks errors:
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web applic
I think your problem is similar to this. When you redeploy the app, apache deploys it incrementally on itself where system.gc();
do not work and after few redeployment in developing phase the permanent generated space gets full and you get memory leak error.
Please keep restarting your server after few redeployment, so the PermGen space can be cleared with a restart.
Or
a you can also solve it by changing the PermGen space in server. Please visit here.
I hope this will help you.