eclipse 初始化需要很长时间
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2312791/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
eclipse takes long time to initialize
提问by java_geek
After selecting the workspace, eclipse takes about 10 minutes to initialize? What could be the problem?
选择工作空间后,eclipse大概需要10分钟初始化?可能是什么问题呢?
回答by Radu Toader
besides eclipse.ini
除了eclipse.ini
try this
尝试这个
Preferences -> General -> Startup and Shutdown -> Deselect all plugins (if you have ADT, leave it)
also :
还 :
Preferences -> Maven -> Uncheck "Download repository index updates on startup"
回答by VonC
Try:
尝试:
- this eclipse.ini
- running eclipse with the
-clean
option
- 这个eclipse.ini
- 使用
-clean
选项运行 eclipse
Such a long startup time is usually the sign of some kind of timeout, because a resource (path, internet address?) does not respond.
这么长的启动时间通常是某种超时的标志,因为资源(路径、互联网地址?)没有响应。
回答by Uri
Eclipse shouldn't take this long to initialize unless you have a lot of plugins (especially buggy ones) installed. Do you get the slowdown after the workbench is already shown? That could indicate a plugin.
Eclipse 不应该花这么长时间来初始化,除非你安装了很多插件(尤其是有问题的插件)。工作台已经显示后,您是否会减速?这可能表明一个插件。
You may want to verify with your Eclipse installation how much max heap it is allocated. Eclipse traditionally ships with a very low default for modern machines. If you are on Windows, look at eclipse.ini in your Eclipse directory and change the -Xmx parameter to something meaningful (e.g., 2048M)
您可能希望通过 Eclipse 安装验证分配了多少最大堆。Eclipse 传统上为现代机器提供了非常低的默认值。如果您使用的是 Windows,请查看 Eclipse 目录中的 eclipse.ini 并将 -Xmx 参数更改为有意义的参数(例如,2048M)
回答by wirelessben
I had the same problem and solved it by setting the socks proxy to the same settings as my http proxy in Window > Preferences > General > Network Settings. My eclipse start time went from 10 minutes to 20 seconds.
我遇到了同样的问题,并通过在窗口 > 首选项 > 常规 > 网络设置中将袜子代理设置为与我的 http 代理相同的设置来解决它。我的日食开始时间从 10 分钟缩短到 20 秒。
回答by Srihari Karanth
Check your workspace size. If its more than some 500 MB then its a problem. Drilldown to the file with maximum size and try to remove or move it out. I had similar problem and found out that there was one movie file of 1 GB and that was causing eclipse to slow down initialization.
检查您的工作空间大小。如果它超过 500 MB,那么它就是一个问题。向下钻取到最大大小的文件并尝试将其删除或移出。我遇到了类似的问题,发现有一个 1 GB 的电影文件,这导致 eclipse 减慢初始化速度。
回答by Luca Bonavita
If your workspace has many open Working Sets, depending on your settings at start-up Eclipse might be building them all.
如果您的工作区有许多打开的工作集,根据您在启动时的设置,Eclipse 可能会构建所有这些工作集。
If this is the case, you could:
如果是这种情况,您可以:
deselect unused Working Sets:
- in the Project Explorer, click on the drop-down triangle
- in the drop-down,
Select Working Set
- in the panel that appears, deselect those you don't need
if you don't want to deselect Working Sets, you could close projects you don't need all the time:
- in the Project Explorer, right-click on a project and click on
Close Project
- OR, right-click on a project and click on
Close Unrelated Projects
(this reduces the start-up time drastically)
- in the Project Explorer, right-click on a project and click on
取消选择未使用的工作集:
- 在项目资源管理器中,单击下拉三角形
- 在下拉菜单中,
Select Working Set
- 在出现的面板中,取消选择不需要的那些
如果您不想取消选择工作集,您可以关闭您不需要的项目:
- 在项目资源管理器中,右键单击一个项目,然后单击
Close Project
- 或者,在一个项目上单击鼠标右键,然后单击
Close Unrelated Projects
(这减少了启动时间大大)
- 在项目资源管理器中,右键单击一个项目,然后单击
回答by Philip Guin
Make sure your eclipse.ini
doesn't contain the --clean
parameter from a previous run.
确保您eclipse.ini
不包含--clean
上次运行的参数。