Tomcat on production server, PermGen and redeploys

前端 未结 7 786
臣服心动
臣服心动 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:34

    You should enable PermGen garbage collection. By default Hotspot VM does NOT collect PermGen garbage, which means all loaded class files remain in memory forever. Every new deployment loads a new set of class files which means you eventually run out of PermGen space.

提交回复
热议问题