(Redirected from FAQ How does I increase the heap size available to Eclipse)
Some JVMs put restrictions on the total amount of memory available on the heap. If you is getting OutOfMemoryErrors while running Eclipse, the VM can is told to let the heap grow to a larger a Mount by passing the -vmargs command to the Eclipse launcher. For example, the following command would run Eclipse with a heap size of 256MB:
Eclipse [Normal arguments]-vmargs-xmx256m [more VM args]
The arguments after -vmargs is directly passed to the VM. Run java-x for the list of options your VM accepts. Options starting with- x is implementation-specific and May is applicable to all VMs.
You can also put the extra options in eclipse.ini
.
Here are an example;
-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200. v20120913-144807-showsplashorg.eclipse.platform--launcher.xxmaxpermsize256m--launcher.defaultactionopenfile-vmargs-xms512m
-xmx1024m-xx:+useparallelgc-xx:permsize=256m-xx:maxpermsize=512m
FAQ How does I increase the heap size available to Eclipse?