Resolution: Description:
========
When running a test in Designer, Designer hangs with the following error:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: PermGen space
Exception in thread "TimerQueue" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-Windows" java.lang.OutOfMemoryError: OutOfMemoryError
Exception in thread "Timer-1" java.lang.OutOfMemoryError: PermGen space
Symptoms:
========
When working with a project with many JAR files, Designer hangs.
Cause:
=====
Each time a test is run in Designer, the classes are reloaded. Eventually the heap gets full.
Resolution:
=======
Turn on permanent heap garbage collection to prevent this error by adding the following line in the designer.tra file.
java.extended.properties=-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:PermSize=512m -XX:MaxPermSize=512m
For Java 1.6 or above, using this parameter would generate the following warning. "Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future". The warning is harmless and can be ignored. To eliminate the message, remove the CMSPermGenSweepingEnabled option:
java.extended.properties=-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:PermSize=512m -XX:MaxPermSize=512m