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

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

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


当前回答

好吧,如果您正在使用Eclipse开发GWT应用程序,那么方法如下:

Eclipse中的内存不足错误

还记得将相同的VM参数添加到托管模式配置中。

其他回答

转到Windows ->首选项->验证,取消选中任何你不想要或不需要的验证器。

对于Eclipse 3.7,您使用Windows ->首选项->通用->启动和关机。

如果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用户:

If you go to Task Manager, choose the eclipse application, and click on the little arrow next to it, you will usually just see one sub-process appear below "eclipse.exe". However, in my case, if you have multiple instances of "Java Platform SE Binary", then end all of them. For some reason, I had three of these running in the background, even though I wasn't currently running any projects. Nevertheless, this will boost performance back to the way it likely was when you first installed eclipse on your computer.

如果更改后您不能再运行项目,那么尝试重新启动eclipse。

如果您因为工作等原因没有绑定到Eclipse,您需要的某些插件功能只能通过Eclipse使用等等;那么一个可能的策略就是完全摆脱Eclipse。这将极大地加快速度。

您可以切换到任何其他IDE或开发环境,以满足您的需要。NetBeans就是一个例子。一些提议的加速也适用于NetBeans,或任何其他IDE。

一个直接应用于Linux的例子是尽可能多地移动到tmpfs挂载。在NetBeans中进行Java开发时,我将Java文档和源代码移到了tmpfs挂载中,这极大地提高了性能。

同样,在c++开发过程中,如果可能的话,我将确保整个源代码树都在我的tmpfs挂载中。虽然我还没有对构建性能进行广泛的基准测试,但在合理大小的代码库(几百个源文件+头文件)上进行了一些测试,结果导致编译时间减少了50%。

请记住,使用此方法时,您的数据在断电期间不会持久。为了解决这个问题,可以创建一个脚本,将tmpfs挂载到某个备份目录,并将该脚本添加为每分钟运行一次的cronjob。

问题可能是java缓存,或者java临时文件。

打开窗口的控制面板,找到Java面板 单击“常规”页签的“设置”, 删除临时文件,并设置存储临时文件的磁盘空间 文件大小不超过10000MB。 重新启动eclipse。恢复所有验证器,您将看到IDE Eclipse的速度是正常的。