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

This entry was posted in Programming and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">