1、总是使用最新的jdk和eclipse
2、
General > Startup and Shutdown : remove all plugins activated on startup
General > Editors > Text Editors > Spelling : Disable spell checking
General > Validation > Suspend all
Window > Customize Perspective > Remove stuff you don’t use or want (shortcut keys are your friends), same for Menu Visibility (how many times have you printed a source file…)
Install/Update > Automatic Updates > Uncheck “Automatically find new updates”
General > Appearance > Uncheck Enable Animations
Stay with the default theme. Unfortunately, anything else makes it really laggy and slow.
3、设置你的ecllipse.ini。
-Xms2048m
-Xmx2048m
-Xverify:none
-XX:+AggressiveOpts
-XX:PermSize=512m
-XX:MaxPermSize=512m
-Xss2m
4、如果有防病毒软件,请将你的${eclipse_home}和${eclipse_workspace}等文件夹排除在防病毒检查之外。这一步参考:https://www.genuitec.com/stop-slow-eclipse-myeclipse-startups/
以下是一些临时性的措施:
For cleaning up indexes
{workspace path}\.metadata\.plugins\org.eclipse.jdt.core
For cleaning up history
{workspace path}\.metadata\.plugins\org.eclipse.core.resources\.history
参考:http://www.nicolasbize.com/blog/7-tips-to-speed-up-eclipse/和 https://howtodoinjava.com/eclipse/how-to-quickly-make-eclipse-faster/