Tomcat8 memory leak

后端 未结 2 419
鱼传尺愫
鱼传尺愫 2020-12-13 19:55

When I try to stop tomcat8 on Java 8, I get a few memory leaks errors:

org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web applic         


        
2条回答
  •  [愿得一人]
    2020-12-13 20:48

    I think your problem is similar to this. When you redeploy the app, apache deploys it incrementally on itself where system.gc(); do not work and after few redeployment in developing phase the permanent generated space gets full and you get memory leak error.

    Please keep restarting your server after few redeployment, so the PermGen space can be cleared with a restart.

    Or

    a you can also solve it by changing the PermGen space in server. Please visit here.

    I hope this will help you.

提交回复
热议问题