Eclipse trouble shooting

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章