Recurring “PermGen” in Tomcat 6

前端 未结 6 1222
盖世英雄少女心
盖世英雄少女心 2020-12-04 16:00

I keep getting a \"PermGen\" error on my Tomcat 6 server.

I know what application is causing the problem, but I am not sure why it is doing so. The application is

6条回答
  •  天命终不由人
    2020-12-04 16:48

    Try the following JVM switches:

    -XX:+UseConcMarkSweepGC
    -XX:+CMSPermGenSweepingEnabled
    -XX:+CMSClassUnloadingEnabled
    

    Upping the permgen space with -XX:MaxPermSize just delays the problem.

    Please see this comment: How to deal with “java.lang.OutOfMemoryError: PermGen space” error

    That indirectly pointed me to these two posts: problem, solution

提交回复
热议问题