Getting rid of "java.lang.OutOfMemoryError: PermGen space" exception on jboss
2010-10-18 12:45
Write commentPlaying around with Seam framework, i began by
deploying some of the sample applications which should work out of the
box ... but not for me:
Just after deploying any of the sample apps, i get the "java.lang.OutOfMemoryError: PermGen" exception right after, as a first
reflex, i've doubled "Xms" and "Xmx" VM options and nothing changed, i
still have the same error, and that's becoming more funny :)
Reading some dokus about the garbage collecting in Java, things became more clear:
The Java garbage collector is managed through 3 generations of objects,
depending on the object age it can be in the (1st) Young generation or
the (2nd) Tenured generation, an object may die or be moved to Tenured
generation depending on the applied GC policies; the Permanent
generation (3rd) holds meta-data describing user classes and can quickly
reach its limits with a large-code application.



