On Ubuntu Karmic, with both JDK 1.5.0_19-b02 and 1.6.0_16-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
Submitted by Karl Trygve Kalleberg on 13 March 2010 at 14:22

On 13 March 2010 at 14:54 Lennart Kats commented:

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 13 March 2010 at 17:24 Karl Trygve Kalleberg commented:

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