如何防止 Eclipse 在启动时挂起? [英] How do I prevent Eclipse from hanging on startup?

查看:40
本文介绍了如何防止 Eclipse 在启动时挂起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Eclipse 3.3(欧洲").Eclipse 周期性地需要非常长的时间(也许永远)来启动.我在 Eclipse 日志中唯一能看到的是:

<前>!ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801!MESSAGE 工作区退出,前一个会话中的更改未保存;刷新工作区以恢复更改.

谷歌搜索显示某人的建议我删除了文件夹:

workspace.metadata.pluginsorg.eclipse.core.resources.root.indexes

这似乎没有帮助.

如果没有从一个新的工作区开始(我不喜欢做的事情,因为我需要花几个小时才能重新正确设置我的所有项目),有没有办法让 Eclipse 正确启动?

解决方案

这可能不是您问题的确切解决方案,但就我而言,我使用 SysInternals Procmon,发现 Eclipse 一直在为我的一个项目轮询相当大的快照文件.删除它,一切正常(尽管工作区处于上次启动时的状态).

删除的文件是:

.metadata.pluginsorg.eclipse.core.resources.projects.markers.snap

I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is:

    !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

Googling reveals someone's suggestion that I remove the folder:

workspace.metadata.pluginsorg.eclipse.core.resources.root.indexes

This does not appear to have helped.

Short of starting with a new workspace (something which I am not keen to do, as it takes me hours to set up all my projects again properly), is there a way to make Eclipse start up properly?

解决方案

This may not be an exact solution for your issue, but in my case, I tracked the files that Eclipse was polling against with SysInternals Procmon, and found that Eclipse was constantly polling a fairly large snapshot file for one of my projects. Removed that, and everything started up fine (albeit with the workspace in the state it was at the previous launch).

The file removed was:

<workspace>.metadata.pluginsorg.eclipse.core.resources.projects<project>.markers.snap

这篇关于如何防止 Eclipse 在启动时挂起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆