0

In eclipse.ini, there is an argument that we can set to allocate memory dynamically to Eclipse. Does someone know what argument is it?

Piotr Nowicki
  • 17,914
  • 8
  • 63
  • 82
Noor
  • 19,638
  • 38
  • 136
  • 254
  • I've read somewhere that other than xms and xmx, there is another argument that can be added to make dynamic memory allocation – Noor Nov 23 '11 at 05:41
  • Can you describe more about the 'dynamically' allocating memory? – Kane Nov 23 '11 at 05:54
  • i.e. Eclipse can take any amount of memory depending on the how much it needs – Noor Nov 23 '11 at 06:01

1 Answers1

1

You can't tell Eclipse to take as much memory as it needs. It's a JVM, so you have to tell it the maximum amount of memory up front. (see, for example What does Java option -Xmx stand for?)

You can allocate more memory using the -Xmx and -Xms memory options in the eclipse.ini. This is mine. Note the three lines at the end which set the memory options:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-clean
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1280m
-XX:MaxPermSize=256m
Community
  • 1
  • 1
Matthew Farwell
  • 60,889
  • 18
  • 128
  • 171