i am Consistently getting java.lang.OutOfMemoryError: PermGen space Error in Eclipse while opening any file in eclipse(exclipse gets closed and logs shows this error) and also when i manuaalu exit the exclipse it shows same error saying unable to save the state of workspace(stating permgen error) Here are the logs in log file under metadata foldet of workspace
!ENTRY org.eclipse.ui 4 0 2011-12-14 10:42:09.464
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.osgi 4 0 2011-12-14 10:42:11.336
!MESSAGE Application error
!STACK 1
java.lang.OutOfMemoryError: PermGen space
!ENTRY org.eclipse.osgi 4 0 2011-12-14 10:42:12.303
!MESSAGE Shutdown error
!STACK 1
java.lang.OutOfMemoryError: PermGen space
Even after I have changed the eclipse.ini parameters to below values.Getting same error
-Xms4096m
-Xmx4096m
--launcher.XXMaxPermSize
4096m
i am using eclipse helios 3.6 version and having RAM of 8 GB. I am not getting how to get rid of this.
You could increase perm space by adding following line to eclipse.ini file
-XX:PermSize=XXXm -XX:MaxPermSize=XXXm