如何让eclipse IDE构建速度更快
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
此链接可能会帮助您
http://pakkatechies.blogspot.com/ 2011/07/making-eclipse-ide-faster.html
This link might help you
http://pakkatechies.blogspot.com/2011/07/making-eclipse-ide-faster.html
调整 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".
在项目构建属性中的行为标签下,选中“启用并行构建”框。
In the project build properties, under behavior tag, check the 'Enable parallel build' box.