Tomcat 8 memory leak -
i'm developing java web application using spring/spring boot/mysql , deployed tomcat 8.
in tomcat web application manager click reload
button , after successful redeploy - find leaks
button , have following message:
the following web applications stopped (reloaded, undeployed), classes previous runs still loaded in memory, causing memory leak (use profiler confirm): /domain-api /domain-api
my tomcat log not contain messages possible memory leaks..
looks right have 2 instances of application(domain-api) , running.. how check , how fix ?
this has not mean, application has memory leak. message in tomcat manager means, there still classes deployed web application loaded have not yet been garbage collected.
if not memory leak warning removed setting permgenspace lower value. force gc unload classes after redeploy app.
an other way ensure have no memory leak redeploy app few times , create heapdump , analyze profiler eclipse memory analyzer . there should instances of type webappclassloader
cannot garbage collected.
Comments
Post a Comment