Eclipse Fall Edition – PermGen Space Error

In the latest J2EE version of the eclipse IDE crawled a bug. If you keep getting an error named as PermGen space error (look in your .log to check for the error after an eclipse crash), there is a simple fix for it.


Solution:
Navigate to your eclipse directory and open the eclipse.ini file. It should look something like


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

This eclipse fall release seems to skip the
–launcher.XXMaxPermSize
256M line.

But simply adding -XX:MaxPermSize=256M (or which other amount you want to set) after the other -vmargs so eclipse.ini looks like:


-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M

should fix the problem

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: