What are the best JVM settings you have found for running Eclipse?
相关问题
- Eclipse and Mylyn : how to disable grey files in t
- Installing Pydev for Eclipse throws error
- Error in Scala Compiler: java.lang.AssertionError:
- How to remove unused imports using Eclipse and not
- Assume/switch role in aws toolkit for eclipse 2.0
相关文章
- java项目突然挂掉,日志无报错信息
- Java引用分为强引用、软引用、弱引用、虚引用,我怎么能判断出一个对象是哪个引用?
- selenium+eclipse 打开网页时报错
- Eclipse failing to open
- Eclipse how can I indent C++ preprocessor macros
- Why is FindBugs ignoring my check for null?
- java.lang.VerifyError: Stack map does not match th
- Eclipse cleanup - what are the “.index” files - ca
Eclipse likes lots of RAM. Use at least -Xmx512M. More if available.
Here's what I use (though I have them in the shortcut instead of the settings file):
eclipse.exe -showlocation -vm "C:\Java\jdk1.6.0_07\bin\javaw.exe" -vmargs -Xms256M -Xmx768M -XX:+UseParallelGC -XX:MaxPermSize=128M
Eclipse Galileo 3.5 and 3.5.1 settings
Currently (November 2009), I am testing with jdk6 update 17 the following configuration set of options (with Galileo -- eclipse 3.5.x, see below for 3.4 or above for Helios 3.6.x):
(of course, adapt the relative paths present in this eclipse.ini to the correct paths for your setup)
Note: for eclipse3.5, replace
startup
andlauncher.library
lines by:eclipse.ini 3.5.1
See also my original answer above for more information.
Changes (from July 2009)
org.eclipse.equinox.p2.reconciler.dropins.directory
option.Before, those relative paths kept being rewritten into absolute ones when eclipse launched itself...
Caveats
There was a bug with ignored breakpoints actually related to the JDK.
Do use JDK6u16 or more recent for launching eclipse (You can then define as many JDKs you want to compile within eclipse: it is not because you launch an eclipse with JDK6 that you will have to compile with that same JDK).
Max
Note the usage of:
As documented in the Eclipse Wiki,
As detailed in this entry:
XX:+UseParallelGC that's the most awesome option ever!!!
Eclipse Ganymede 3.4.2 settings
For more recent settings, see Eclipse Galileo 3.5 settings above.
JDK
The best JVM setting always, in my opinion, includes the latest JDK you can find (so for now, jdk1.6.0_b07 up to b16, except b14 and b15)
eclipse.ini
Even with those pretty low memory settings, I can run large java projects (along with a web server) on my old (2002) desktop with 2Go RAM.
See GKelly's SO answer and Piotr Gabryanczyk's blog entry for more details about the new options.
Monitoring
You can also consider launching:
As said in a previous question about memory consumption.
If youre like me and had problems with the current Oracle release of 1.6 then you might want to update your JDK or set
. More information is available here: http://java.dzone.com/articles/latest-java-update-fixes