Wednesday, July 30, 2008

How to increase Eclipse heap space

Many times whe encounter the problem of running out of heap space in Eclipse.
The solution to this problem is to edit the eclipse.ini file that can be found in the directory containing eclipse with the following:

-vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m

This configuration of heap space is best suitable for a system with 1024 RAM memory and running just Eclipse and some IM and a music player but when the system memory is needed by many other applications the heap size should be diminished.

Also in order to increase Eclipse performance the permSize should be increased also.

Sources for this article:
http://www.eclipsezone.com/eclipse/forums/t61618.html

No comments: