PermGen space errors in Eclipse while compiling
'java.lang.OutOfMemoryError: PermGen space' errors can be solved by increasing the java VM's 'MaxPermSize' value and by enabling garbage collection for this memory area. This is done by adding the following lines to eclipse.ini:
-XX:PermSize=64m -XX:MaxPermSize=128m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled
The 'MaxPermSize' specifies the maximum size for the permanent generation heap, a heap that holds objects such as classes and methods.
java.lang.OutOfMemoryError: GC overhead limit exceeded (Sun Java 64bit)
When using 64bit Java, Eclipse SDK needs more memory than with a 32bit Java. Therefore, you should make sure, you have at least the following memory sizes defined in your eclipse.ini:
-Xms512m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m