I found this is a well known problem on Tomcat, so I'm trying to solve it on my server.
Deploying/undeploying war files on my Tomcat I often get this alert checking memory leaks:
The following web applications were stopped (reloaded, undeployed), but their
classes from previous runs are still loaded in memory, thus causing a memory
leak (use a profiler to confirm):
/GEKKO
/GEKKO
/GEKKO
/LinkPlatform
This answer https://stackoverflow.com/a/4565522/1061499 suggests to:
Make sure your web application does not use any java classes that are in the web container shared libraries. If you have any shared libraries, make sure there is no strong references to the objects in those libraries
What does it mean? I'm using Maven in my Eclipse project and all dependencies are automatically loaded. But I have to manually add Tomcat libraries in project build path (Server Runtime). Is this the problem? Are Tomcat jars "shared libraries"?