Thursday, December 2, 2010

Resolution for 'java.lang.OutOfMemoryError: PermGen space'

When running my application on Tomcat, 
I came across 'java.lang.OutOfMemoryError: PermGen space' and in-order
to resolve it, all I had to do was set the following parameter as a
JAVA_OPTS param on the command window which I was running Tomcat on.

$ export JAVA_OPTS="-XX:MaxPermSize=256m"