Saturday, October 16, 2010

Eclipse 3.6 Permgen Error [SOLVED]

The latest SUN jdk release is the 21 update. As you all have noticed the eclipse 3.6 running under this jvm crashes due to permgen error when you try to run it. The reason behind it is that with Oracle/Sun JDK 1.6.0_21 (July 2010), the eclipse launcher cannot detect a Oracle/Sun VM, and therefore does not use the correct PermGen size.

If you are using either of this version, you have to add the Permgen size as below.



-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-XX:MaxPermSize=512m
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m


This will solve the annoying Permgen error in your eclipse.

Cheers...

No comments:

Post a Comment