Jump to: navigation, search

Difference between revisions of " eclipse.ini"

Line 1: Line 1:
 
Eclipse startup is controlled by the options in <code>$ECLIPSE_HOME/eclipse.ini</code>. If <code>$ECLIPSE_HOME</code> is not defined, the default <code>eclipse.ini</code> in your Eclipse installation directory is used.
 
Eclipse startup is controlled by the options in <code>$ECLIPSE_HOME/eclipse.ini</code>. If <code>$ECLIPSE_HOME</code> is not defined, the default <code>eclipse.ini</code> in your Eclipse installation directory is used.
  
<code>eclipse.ini</code> is a text file containing command-line options that are added to the command line used when Eclipse is started up. Each option and each argument to an option must be on its own line.
+
<code>eclipse.ini</code> is a text file containing command-line options that are added to the command line used when Eclipse is started up.
 +
'''''Important: Each option and each argument to an option must be on its own line.'''''
  
 
By default, <code>eclipse.ini</code> contains something like
 
By default, <code>eclipse.ini</code> contains something like
  
 +
-showsplash
 +
org.eclipse.platform
 +
--launcher.XXMaxPermSize
 +
256m
 
  -vmargs
 
  -vmargs
  -Xms40M
+
  -Xms40m
  -Xmx256M
+
  -Xmx256m
 +
 
 +
which sets the heap space to 40MB initially and a maximum of 256MB, and also specifies a maximum PermGen size of 256MB.
 +
 
 +
 
 +
One of the most recommended options to use is to [[FAQ_How_do_I_run_Eclipse%3F#Find_the_JRE| specify a specific JVM]] for Eclipse to run on. The following <code>eclipse.ini</code> demonstrates correct usage of the -vm option:
 +
 
 +
-showsplash
 +
org.eclipse.platform
 +
--launcher.XXMaxPermSize
 +
256m
 +
-vm
 +
C:\Java\JDK\1.5\bin\javaw.exe
 +
-vmargs
 +
-Xms40m
 +
-Xmx512m
  
which sets the stack space to 40MB and the heap size to 256MB.
 
  
 
== See Also: ==
 
== See Also: ==

Revision as of 12:40, 29 January 2008

Eclipse startup is controlled by the options in $ECLIPSE_HOME/eclipse.ini. If $ECLIPSE_HOME is not defined, the default eclipse.ini in your Eclipse installation directory is used.

eclipse.ini is a text file containing command-line options that are added to the command line used when Eclipse is started up. Important: Each option and each argument to an option must be on its own line.

By default, eclipse.ini contains something like

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m

which sets the heap space to 40MB initially and a maximum of 256MB, and also specifies a maximum PermGen size of 256MB.


One of the most recommended options to use is to specify a specific JVM for Eclipse to run on. The following eclipse.ini demonstrates correct usage of the -vm option:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Java\JDK\1.5\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m


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.