Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ How do I increase the heap size available to Eclipse?"

m
Line 6: Line 6:
 
The arguments after <tt>-vmargs</tt> are directly passed  to the VM. Run <tt>java -X</tt> for the list of options your VM accepts.  Options starting with <tt>-X</tt> are implementation-specific and may not be applicable to all VMs.
 
The arguments after <tt>-vmargs</tt> are directly passed  to the VM. Run <tt>java -X</tt> for the list of options your VM accepts.  Options starting with <tt>-X</tt> are implementation-specific and may not be applicable to all VMs.
  
You can also put the extra options in <code>eclipse.ini</code>.
+
You can also put the extra options in <code>[[eclipse.ini]]</code>.
  
 
== See Also: ==
 
== See Also: ==

Revision as of 12:09, 28 February 2007

Some JVMs put restrictions on the total amount of memory available on the heap. If you are getting OutOfMemoryErrors while running Eclipse, the VM can be told to let the heap grow to a larger amount 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 are directly passed to the VM. Run java -X for the list of options your VM accepts. Options starting with -X are implementation-specific and may not be applicable to all VMs.

You can also put the extra options in eclipse.ini.

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top