I\'ve hit this error where the CPU usage goes to its limits and JBoss needs a restart (java.lang.OutOfMemoryError: PermGen space).
java.lang.OutOfMemoryError: PermGen space
I found a solution f
The VM parameter is:
-XX:MaxPermSize=256M
Just make it large enough that you don't hit the limit.
Broadly speaking, perm gen memory is used for objects associated with Classes and interned Strings. You shouldn't run out unless you have use lot of different classes.