» To Project

java.lang.OutOfMemoryError: PermGen space

Spoofax #52 - Error (by Karl Trygve Kalleberg on Mar 13)

On Ubuntu Karmic, with both JDK 1.5.019-b02 and 1.6.016-b01, using Eclipse 3.5.1 SDK (classic) freshly installed with only Subclipse 1.6 and the latest Spoofax/IMP (build 201003121257) I consistently see

  • java.lang.OutOfMemoryError: PermGen space
    • every time I open an .sdf or .str file
  • One CPU is hogged at 100%
  • Must kill Eclipse with -9 to recover

eclipse.ini:

-startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize 700m
-vmargs
-Xss8m
-Xms400m
-Xmx856m
-Djava.library.path=/usr/lib/jni

Issue Log

On Mar 13 Lennart Kats wrote:

I haven't seen this one before. The --launcher.XXMaxPermSize 700m line in the .ini looks a bit funny though. I think that should be on a separate line -XX:MaxPermSize=700M, after the -vmargs parameter.

On Mar 13 Karl Trygve Kalleberg wrote:

Good catch. It turns out that removing the line break after XXMaxPermSize broke it. Once I stuff the line break back in, it works like a charm.

Log in to post comments