How can you speed up Eclipse?
How can you make the experience with Eclipse faster?
For instance: I disable all the plugins I don't need (Mylyn, Subclipse, …).
The three most influential factors for Eclipse speed are:
- Using the latest version of Eclipse (3.4 Ganimede at the time of writing in 2008) Note that David Balažic's comment (July 2014) contradicts that criteria which was working six years ago:
The "same" workspace in Indigo (3.7.2) SR2 loads in 4 seconds, in Kepler SR2 (4.3.2) in 7 seconds and in Luna (4.4.0) in 10 seconds. All are Java EE bundles. Newer versions have more bundled plugins, but still the trend is obvious. (by "same" workspace I mean: same (additionally installed) plugins used, same projects checked out from version control).
Launching it with the latest JDK (1.7 at the time of writing, which does not prevent you to compile in your Eclipse project with any other JDK you want: 1.4.2, 1.5, 1.6 older...)
Configuring the eclipse.ini (see this question for a complete eclipse.ini)
-Xms128m -Xmx384m -XX:MaxPermSize=128m # NOTE: this option is obsolete in Java 8, it will be ignored -Xss2m [...]
The Xmx argument is the amount of memory Eclipse will get (in simple terms). With -Xmx384m, it gets 384 MB of RAM, with -Xmx4G it gets 4 GB, etc.
Referring to the jvm.dll has advantages:
- Splash screen coming up sooner.
- Eclipse.exe in the process list instead of java.exe.
- Firewalls: Eclipse wants access to the Internet instead of Java.
- Window management branding issues, especially on Windows and Mac.
But it can also have some drawbacks if you try to push the memory too high.
The default memory taken by Eclipse is the combination of MaxPermSize and Xmx. Here up to 512 MB total, which is quite enough for a 1 GB memory computer.