简体   繁体   中英

How to fix bug Memory Leak in Tomcat server

I have a problem about Memory Leak in Tomcat server.
When I undeploy and redeploy the error message war appeared as below:

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): /myWebApplication

How can I fix it and deploy as normally
If anyone known that , please help me .
Thank you very much !

确保实现ServletContextListener并清除在调用contextDestroyed()时可能仍处于活动状态或引用的任何资源(例如线程,计时器,单例,休眠)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM