最近tomcat过一段时间发生memory leak,在tomcat管理界面上点击find leak出现如下信息
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):
回忆之前操作觉得是多次项目反复(STOP,UNDEPAY),导致tomcat回收不了某些class文件。建议
出现此情况,停止重启tomcat