Eclipse 3.3 leaks permgen space
Some of you who use Eclipse 3.3 with Sun JVM might notice that it crashes from time to time. Those who have many plugins certainly experienced this more often. Problem and solution for this bug is very trivial but worth mentioning: leaking permgen space. Comes back like November flu! Just to remind the permgen space is a memory for storing “data needed by the virtual machine to describe objects that do not have an equivalence at the Java language level. For example objects describing classes and methods are stored in the permanent generation“. More information about permgen can be found in an article about tuning garbage collection.
To fix the problem edit your eclipse.ini and add following lines:
-XX:PermSize=128M -XX:MaxPermSize=256M
You might also try Eclipse 3.3.1.1 which includes a fix for the above problem.
Enjoy!
Popularity: 46% [?]

sean said,
April 17, 2008 @ 10:11 am
“You might also try Eclipse 3.3.1.1 which includes a fix for the above problem” ??
I think not!
I am using eclipse 3.3.2,
and on linux, after a few runs of ant, my PermGen space is blown, and I am forced to start it again. Not so on windows.
Why is eclipse so broken on linux?