B.3 OutOfMemoryError: PermGen Space Running on Sun JVM

As a result of Sun Java bug 4957990, the Virgo may consume more PermGen space than expected when running with the server HotSpot compiler. This problem may be resolved by configuring the JAVA_OPTS environment variable to specify an increased MaxPermSize, for example -XX:MaxPermSize=128M.