Tomcat on production server, PermGen and redeploys

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

    PermGen switches in HotSpot only delay the problem, and eventually you will get the OutOfMemoryError anyway.

    We have had this problem a long time, and the only solution I've found so far is to use JRockit instead. It doesn't have a PermGen, so the problem just disappears. We are evaluating it on our test servers now, and we haven't had one PermGen issue since the switch. I also tried redeploying more than 20 times on my local machine with an app that gets this error on first redeploy, and everything chugged along beautifully.

    JRockit is meant to be integrated into OpenJDK, so maybe this problem will go away for stock Java too in the future.

    http://www.oracle.com/technetwork/middleware/jrockit/overview/index.html

    And it's free, under the same license as HotSpot:

    https://blogs.oracle.com/henrik/entry/jrockit_is_now_free_and

提交回复
热议问题