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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -