JBoss 7, java.lang.OutOfMemoryError: PermGen space

后端 未结 4 1124
难免孤独
难免孤独 2020-12-07 11:37

I\'ve hit this error where the CPU usage goes to its limits and JBoss needs a restart (java.lang.OutOfMemoryError: PermGen space).

I found a solution f

4条回答
  •  悲&欢浪女
    2020-12-07 12:09

    We had to do the exact same thing and unfortunately visualvm did not do much for us.

    We ended up using eclipse mat to analyse the heap dump generated on crash and then checked out the leak suspects report which told us that there were a lot of ModuleClassLoader instances being leaked.

    Clicking on one of the instances in the overview tab and then selecting merge shortest paths to GC roots + exclude weak references gave us our culprit which was not allowing these ModuleClassLoader instances to be GC'ed!

    https://smalldata.tech/blog/2015/09/29/detecting-java-permgen-memory-leak

提交回复
热议问题