... until the collector arrives ...

This "blog" is really just a scratchpad of mine. There is not much of general interest here. Most of the content is scribbled down "live" as I discover things I want to remember. I rarely go back to correct mistakes in older entries. You have been warned :)

2006-05-15

Eclipse vs PERM GEN Space

From time to time, Eclipse throws an OutOfMemoryError, complaining that it is out of PERM GEN space.  A bit of reading reveals that PERM GEN space is used as a garbage collection generation space for permanent objects -- such as pieces of classes that are never unloaded.  You can get this error if you load lots of classes.  To increase the size of the PERM GEN space, use:

-XX:MaxPermSize=128m

The default is 64m.

Blog Archive