PermGen Out of Memory reasons

前端 未结 2 1819
野的像风
野的像风 2020-12-24 09:53

I constantly detect OOM in PermGen for my environment:

  1. java 6
  2. jboss-4.2.3
  3. Not a big web-application

I know about String.intern

2条回答
  •  自闭症患者
    2020-12-24 10:43

    You typically get this error when redeploying an application while having a classloader leak, because it means all your classes are loaded again while the old versions stay around.

    There are two solutions:

    • Restart the app server instead of redeploying the application - easy, but annoying
    • Investigate and fix the leak using a profiler. Unfortunately, classloader leaks can be very hard to pinpoint.

提交回复
热议问题