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, …).
Instead of using a plugin for Mercurial, I configure TortoiseHG as an external tool.
The three most influential factors for Eclipse speed are:
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...)
-vm jdk1.6.0_10jrebinclientjvm.dll
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.
Note:
Referring to the jvm.dll has advantages:
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.
Add -Xverify:none
to your eclipse.ini file.
It will cut down your Eclipse startup time considerably (50% in my case if not more). This will tell the VM not to validate all the .class files it is loading.
Go to Windows -> Preferences -> Validation and uncheck any validators
you don't want or need.
For Eclipse 3.7, you use Windows -> Preferences -> General -> Startup and Shutdown .
链接地址: http://www.djcxy.com/p/2632.html下一篇: 你如何加速Eclipse?