如何让eclipse IDE构建速度更快

发布于 2024-09-02 12:45:13 字数 110 浏览 2 评论 0原文

我正在使用 Eclipse 进行开发。然而,它的构建花费了太多时间。 当构建百分比达到 78 时,它会挂起。它多次显示“正在刷新工作区”。这会占用很多时间。

如何让 Eclipse 更快?

I am using Eclipse for development. However, it's is taking too much time to build.
It hangs when the percentage of build gets to 78. It shows "refreshing workspace" several times. That eats up lots of time.

How can I make Eclipse faster?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

唯憾梦倾城 2024-09-09 12:45:13
  1. 增加 thamaria 提到的启动内存
  2. 禁用 eclipse 的拼写检查
  3. 禁用您从不使用它的插件(myln 等)
  4. 禁用自动构建。

此链接可能会帮助您

http://pakkatechies.blogspot.com/ 2011/07/making-eclipse-ide-faster.html

  1. Increase the start-up memory as mentioned by thamaria
  2. Disable spell check of eclipse
  3. Disable the plugins which you never use it (myln etc)
  4. Disable auto build.

This link might help you

http://pakkatechies.blogspot.com/2011/07/making-eclipse-ide-faster.html

黒涩兲箜 2024-09-09 12:45:13

调整 Eclipse 的可能性有很多。

首先,当 Eclipse 挂起时,您应该使用一些参数启动 Eclipse 并为其提供更多内存。使用:eclipse -vmargs -Xms256m -Xmx1024m 甚至更多。

编辑:“eclipse -vmargs -Xms256m -Xmx1024m”是可以启动 Eclipse 的命令行命令(具体取决于您的操作系统)。为此,您要么需要在环境路径中包含 Eclipse,要么必须使用 Eclipse 可执行文件的绝对路径。在 Windows 系统下,您可以使用例如“C:\Programme\eclipse\eclipse.exe -vmargs -Xms256m -Xmx1024m”。您可以使用此命令创建快捷方式。

其次:如果可能的话,您可以为 Eclipse 项目使用多个工作空间(如果它们彼此未连接)。当使用实际工作区中的项目以外的其他项目时,请将工作区切换到您想要的工作区。这样 eclipse 就不需要在启动时加载所有内容,因此启动速度会更快。

第三:您可以禁用“构建工作区”选项。转到“项目”-->并取消选中“自动构建”

There are many possibilities to tune Eclipse.

First, when Eclipse is hanging up you should start Eclipse with some arguments and give it more memory. Use: eclipse -vmargs -Xms256m -Xmx1024m or even more.

EDIT: "eclipse -vmargs -Xms256m -Xmx1024m" is the commandline command with which you can start Eclipse (well, depending on your OS). For that you either need to have eclipse in your environement path or you will have to use an absolute path to your eclipse executable file. Under Windows systems you may use for example "C:\Programme\eclipse\eclipse.exe -vmargs -Xms256m -Xmx1024m". You could f.e. create a short-cut with this command.

Second: If possible you can use several workspaces for your eclipse projects if they are not connected to each other. When using other projects than the ones located in your actual workspace switch the workspace to the one you desire. That way eclipse does not need to load all contents at startup and will therefor start much faster.

Third: You can disable the "build workspace" Option. Go to "project" --> and uncheck "build automatically".

痴梦一场 2024-09-09 12:45:13

在项目构建属性中的行为标签下,选中“启用并行构建”框。

In the project build properties, under behavior tag, check the 'Enable parallel build' box.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文