Tassos Bassoukos

Environmentaly friendly. Using 100% recycled electrons.

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(!).

@ Thursday, 08 June 2006, 19:57 in (Eclipse) - 3 comments

Smallest code segments? >> << Petals Around the Rose

Comments
  1. Comment by Samon Friday, 01 December 2006, 17:09
    I got the same problem.
    I'll try this : eclipse.exe -vmargs -Xms512M -Xmx1024M -XX:PermSize=64m -XX:MaxPermSize=128m

    Merci !
  2. Comment by Sameeron Tuesday, 25 March 2008, 11:42
    make it
    -XX:PermSize=128m
    -XX:MaxPermSize=256m

    :)
    given your system RAM permits that
  3. Comment by Saeid Zebardast on Monday, 30 June 2008, 14:57
    Thanks
Post a comment
Name:
Webpage:
Save this info.
Comment Text:
Trackback

The Trackback link for this post is here.