What is the underlying cause of a PermGen OutOfMemoryError in JBoss?
I am running JBoss AS 4.2.2 in my development environment, and this occurs after redeploying my web application a large number of times.
Christian Vest Hansen's blog gives JVM options that help a lot, but do not solve the problem completely:
-XX:+UseConcMarkSweepGC
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
-XX:MaxPermSize=128m