Tomcat on production server, PermGen and redeploys

前端 未结 7 769
臣服心动
臣服心动 2021-02-01 05:51

It looks like

 MemoryError: PermGen space
 java.lang.OutOfMemoryError: PermGen space

is a common problem. You can Increase the size of your pe

7条回答
  •  孤街浪徒
    2021-02-01 06:13

    You can try adding these Java options:

    -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
    

    This enables garbage collection in PermGen space (off by default) and allows the GC to unload classes. In addition you should use the -XX:PermSize=64m -XX:MaxPermSize=128m mentioned elsewhere to increase the amount of PermGen available.

提交回复
热议问题