The various options for solving PermGen problems

前端 未结 2 1562
野的像风
野的像风 2020-12-28 10:13

I am looking into the various options around garbage collection on a Java 6 18 VM and would like some pointers.

We run our application on JBoss, and occasionally the

相关标签:
2条回答
  • 2020-12-28 10:29

    Long but good reading: http://victor-jan.blogspot.com/2010/05/classloader-leaks-dreaded.html In short, it is solvable. Not easy, but solvable.

    0 讨论(0)
  • 2020-12-28 10:31

    Unfortunately, the answers are:

    1. Yes
    2. Those VM options will only postpone the problem.

    The basic problem is that the GC will not garbage collect a strongly reachable object. You need to figure out why those old application class loaders are still reachable after a redeploy ... and fix the leak.

    Alternatively, give up on hot redeployment on your production servers, or restart the web container (e.g. JBoss) more often.

    0 讨论(0)
提交回复
热议问题