4

I am pretty new to eclipse and it was working fine but now its giving me Java Heap problems and sometimes outofmemory issues...

Can anyone help me with my eclipse.ini ... i have increased some memory values and it got better but not perfect...

I am using this java but currently not doing java editing as such i am just in the eclipse interface ..

1.6 1.6.0_16 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\jre6\bin\javaw.exe true

Here is my ini, its very small currently

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.rcp.product
--launcher.XXMaxPermSize
384M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-nl en_US
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx512m
-Djava.net.preferIPv4Stack=true
mark smith
  • 20,637
  • 47
  • 135
  • 187
  • 1
    How about trying mine? See http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse/1409590#1409590 – VonC Oct 24 '09 at 19:53
  • this is great!, it seems to work, i edited my location where my java was and removed -data ... and all is ok :-)!! Thanks .. I have no idea what it does but it works :-) – mark smith Oct 24 '09 at 20:07
  • Hey, i can't accept you as the correct answer as its only a comment. Would like you like to enter a reply so i can accept.?? – mark smith Oct 24 '09 at 20:08

1 Answers1

2

Heap issues have been seen before (see this question, or that one, for instance).
Various settings have been proposed (like here), since heap size can be specified in Java.

After quite a bit of experimenting with eclipse.ini, I found my version of it stable enough for most current usage.
See Eclipse Galileo 3.5 and 3.5.1 settings (as part of various other eclipse optimizations)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250