OutOfMemoryError when hot-deploying SpringMVC app to Tomcat7 - possible relation to log4j2

前端 未结 3 600
萌比男神i
萌比男神i 2021-01-28 12:20

I am having trouble Hot Deploying a Spring-MVC 4.0 (not SpringBoot) Web Application. I am trying to go xml-less and just use JavaConfig. OutOfMemoryErrors result when

3条回答
  •  北海茫月
    2021-01-28 12:29

    Long time ago I have the same problem with tomcat7 hot deployment. When i start to using JAVA_OPTS with

    -XX:+CMSClassUnloadingEnabled

    solve my problem. I would like to explain, but i think that are better explanations.

    What does JVM flag CMSClassUnloadingEnabled actually do?

    http://frankkieviet.blogspot.ca/2006/10/classloader-leaks-dreaded-permgen-space.html

提交回复
热议问题