Eclipse and PermGen space...
My home computer is an AMD64 machine, onto which I'd installed the 64-bit version of Ubuntu Dapper, but It was a basic install without any fluff (beyond mythtv, that is). I installed Eclipse on it for some work (specifically, the Callisto R6), but it was interminently thowing OutOfMemory errors.
Specifically it was throwing java.lang.OutOfMemoryError: PermGen space errors, which was a bit baffling, as the memory used by the VM was well below the allowed maximum memory usage. After a bit of googling around, turns out that PermGen is the permanent generation of objects in the VM (Class names, internalized strings, objects that will never get garbage-collected). An easy, if somewhat memory-hungry fix is to enlarge the maximum space for these objects by adding
-XX:PermSize=64m
-XX:MaxPermSize=128m
to the $ECLIPSE_HOME/eclipse.ini file, which has me happily loading all Callisto plugins at the same time(!).



Comments