OutOfMemoryException (PermGenSpace) with Eclipse JEE
The Eclipse JEE distribution Europa Winter appears to have a memory issue with the default JVM memory settings, causing an OutOfMemoryException of the PermGenSpace which makes the IDE hang up and / or exit.
This issue appears to be subject of several bug reports and discussions (see for example this discussion at EclipseZone) .
In general, the fix or workaround for the problem is assigning more memory to the PermGenSpace while increasing the amount of heapspace.
The following entries in the eclipse.ini (located in the eclipse installation root folder) did it for me:
-Xms40m
-Xmx512m
-XX:MaxPermSize=96m
Not that this workaround will only work with sun’s Java distribution (which is the most common), but not with IBM’s, since the latter does not support setting the maxPermSize with -XX:MaxPermSize.
This entry was posted on Sunday, April 13th, 2008 at 11:38. Posted in: J2EE, eclipse, java. You can follow any responses to this entry through the RSS 2.0feed. You can leave a response, or trackback from your own site.
