Thursday, March 5, 2009

OutOfMemoryException: PermGen space From Too Many Tomcat Webapp Deploys/Undeploys

When you get "OutOfMemoryException: PermGen space" errors from too many Tomcat webapp Deploys/Undeploys (remove war file in webapps, it undeploys, add one, it deploys, repeat), Bob Finch of wwu.edu shared the following settings for uPortal on the uportal-user mailing list:
We run with -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled on our test server.  It seems to help when repeatedly deploying.

No comments: