I\'ve got a Grails application that does a fairly decent amount of domain object creation and destruction, and it seems to run out of PermGen space at a very, very rapid rat
Have you tried
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
?
Together with increasing the usual suspects (-Xmx
, -Xms
, -XX:PermSize
and -XX:MaxPermSize
) this resolved all the PermGen issues on our production Tomcat, which had occured pretty soon after deploying the app. Never seen another OOM-Exception after that. :-)