How to solve PermGen space Error in eclipse?

UPDATED: 09 November 2010
eclipse
Unhandled event loop exception (PermGen space)
For all those developers,beginners who are facing this kind of problem in Eclipse IDE running in windows with JVM update java 1.6 update 21 or later. The permGen space problem is common with the Eclipse IDE. The one working solution is to increase the space in eclipse.ini or the configuration file following the given below steps.

Open the Configuration file in the eclipse directory forlder. for eg. C:\eclipse-jee-galileo-SR2-win32\eclipse
just add -XX:MaxPermSize=256m command below the -vmargs line. Change value of -XX:MaxPermSize as per your requirement. If your project is big you should use 512m or 1024m. I'm using 256m in my project.

Now your eclipse.ini file should look like this

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-XX:MaxPermSize=512m 
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m

0 comments :