How can I give eclipse more memory than 512M?

I have the following setup, but when I put 1024 and replace all 512 with 1024, then the eclipse does not start at all. How can I store more than 512 MB of memory for the eclipse JVM?

-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 com.springsource.sts.ide --launcher.XXMaxPermSize 512M -vm C:\Program Files (x86)\Java\jdk1.6.0_18\bin\javaw -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms512m -Xmx512m -XX:MaxPermSize=512m 
+78
memory-management eclipse
Apr 09 2018-10-09T00:
source share
7 answers

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.

+96
Apr 09 '10 at 19:22
source share

Here is how I increased eclipse Juno memory allocation:

enter image description here

I have a total of 4 GB on my system, and when I work on eclipse, I do not run any other heavy software tools next to it. Therefore, I allocated 2Gb.

What I noticed is that the difference between the min and max values โ€‹โ€‹should be 512. The next value should be indicated, for example, 2048 min + 512 = 2560max

Here is the heap value inside the eclipse after installing -Xms2048m -Xmx2560m :

enter image description here

+30
Dec 14 '12 at 10:35
source share

Care and nutrition of hunger Eclipse is a pain ...

More or less, keep trying to reduce the amount until it works, which is your maximum

+4
Apr 09 '10 at 19:58
source share

You can copy this to your eclipse.ini file to have 1024M:

 -clean -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m 
+3
Apr 09 '10 at 19:21
source share

I do not think you need to change MaxPermSize to 1024 m. This works for me:

 -startup plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m 
+2
Apr 09 '10 at 19:36
source share

While working on a corporate project in STS (heavily based on Eclipse), I constantly crashed, and STS paid about 1 GB of RAM. I could not add new .war files to my local tomcat server, and after deleting the tomcat folder to add it again, I found that I could not re-add it. In fact, almost everything that required a new pop-up window, in addition to the main menu, caused STS to stop.

I edited STS.ini (your Eclipse.ini can be configured similarly):

- launcher.XXMaxPermSize 1024M -vmargs -Xms1536m -Xmx2048m -XX: MaxPermSize = 1024M

Restarted STS again and saw a plateau of about 1.5 gigs before finally collapsing

+1
Aug 28 '13 at 21:18
source share

Here is how I did it:

-vmargs

-Dosgi.requiredJavaVersion = 1.6

-XX: MaxPermSize = 256m

-Xms512m

-Xmx650m (it can be any number that you want not only 1024 m, - more than 512 m to your free bar)

but I think it would be better to use 64 bits.

0
May 04 '15 at 5:59
source share



All Articles