如何使使用Eclipse的体验更快?

例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)

我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。


当前回答

通过增加堆空间和更改垃圾收集器设置来加速Eclipse,我尝试了许多方法。

但就我的本地开发而言,我认为禁用JVM垃圾收集器最适合我。

Mylyn的自动补全功能工作起来没有问题,(未响应)部分已被显著地最小化。

下面是eclipse.ini文件的快照。

-vm
--C:\JAVA\jre\bin\server\jvm.dll
C:\JAVA8x64\jre\bin\server\jvm.dll
-vmargs
-Xnoclassgc
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m

我尝试过使用JDK 6和JDK 8,在这两种情况下,都注意到显著的加速。

其他回答

禁用病毒扫描程序,或至少将任何病毒扫描程序配置为在读访问时不扫描JAR文件。

如果Eclipse运行缓慢,我遵循以下几个步骤:

Any unused plugins installed in Eclipse, should uninstall them. -- Few plugins makes a lot much weight to Eclipse. Open current working project and close the remaining project. If there is any any dependency among them, just open while running. If all are Maven projects, then with miner local change in pom files, you can make them individual projects also. If you are working on independent projects, then always work on any one project in a workspace. Don't keep multiple projects in single workspace. Change the type filters. It facilitates to specify particular packages to refer always. As per my experience, don't change memory JVM parameters. It causes a lot of unknown issues except when you have sound knowledge of JVM parameters. Un-check auto build always. Particulary, Maven project's auto build is useless. Close all the files opened, just open current working files. Use Go Into Work sets. Instead of complete workbench. Most of the components of your application you can implement and test in standalone also. Learn how to run in standalone without need of server deploy, this makes your work simple and fast. -- Recently, I worked on hibernate entities for my project, two days, I did on server. i.e. I changed in entities and again build and deployed on the server, it killing it all my time. So, then I created a simple JPA standalone application, and I completed my work very fast.

禁用标签装饰可以获得另一种性能提升 (Windows ->首选项;概述->外观->标签装饰) 在启动时禁用未使用的功能 (Windows ->首选项;一般->启动和关闭)。

您还可以根据JVM选择不同的垃圾收集策略来获得额外的性能。

如果你厌倦了重启周期,你可以使用ZeroTurnaround的JavaRebel。这将缩短重启服务器/客户端的时间。

我实现了一个插件来配置在运行时加载哪些特性,以提高性能并减少不同插件之间的冲突。

您可能已经在Eclipse中安装了许多特性,例如Android开发工具、C/ c++开发工具、PHP、SVN、Git和ClearCase插件。因此Eclipse很重,需要消耗大量内存,其中一些并不经常使用。

因此,您可以使用我的工具创建不同的运行时策略,例如一个包含Android、Git和基本Eclipse,另一个包含C/ c++、SVN和基本Eclipse。下一次,如果您使用的策略只有Android和Git, Eclipse将只加载指定的特性。

欢迎您试用并反馈给我。:)

该工具的名称是Equinox Advanced Configurator。

如果您使用Maven和ivy,请检查它们的控制台,以防它们在构建期间占用处理。我使用ivy,在此基础上,我有某些JAR文件(内部)更改为相同的版本,所以它必须一直锻炼来获取它们。

如果您在网络驱动器上定义了项目,那么在构建/读/写类型的过程中也会遇到延迟。

禁用/卸载你不需要的插件。 你不需要的近距离视角 关闭未使用的数据库连接