I had a lot of problems trying to get Eclipse to accept as much memory as I would like to use (2 to 4 gigs, for example).
Open eclipse.ini in the Eclipse installation directory. You should be able to resize memory after -vmargs up to 1024 no problem to some maximum value depending on your system. Here is this section on my Linux box:
-vmargs -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=512m -Xms512m -Xmx1024m
And here is this section on my Windows box:
-vmargs -Xms256m -Xmx1024m
But I was not able to set it above 1024 megabytes. If anyone knows how to make this work, I would like to know.
EDIT : The 32-bit version of juno does not seem to accept Xmx1024m anymore, where the 64-bit version accepts 2048.
EDIT . The Nick post contains some excellent links that explain two different things:
- The problem largely depends on your system and the amount of free memory available, and
- Using javaw.exe (on Windows), you can get a larger allocated block of memory.
I have 8 gigabytes of Ram and canโt set -Xmx more than 1024 megabytes of bar, even if the minimum number of programs are loaded, and both windows / linux have 4 to 5 gigabytes of free bar.
Kaleb Pederson Apr 09 '10 at 19:22 2010-04-09 19:22
source share