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

问题描述

我正在使用Eclipse 3.3(Europa)。定期地,Eclipse需要很长时间(也许永远)启动。在Eclipse日志中唯一可以看到的是:

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

Googling显示,我删除文件夹:

 工作区\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes 

这似乎没有帮助。



没有开始一个新的工作区(我不热衷于做的事情,因为需要我几个小时再次正确设置我的所有项目),有没有办法使Eclipse正常启动?

解决方案

这可能不是确切的解决您的问题,但在我的情况下,我跟踪了Eclipse正在轮询的文件与,并发现Eclipse不断为我的一个项目轮询一个相当大的快照文件。删除,一切都开始正常(尽管在之前发布的状态下的工作区)。



删除的文件是:

 < workspace> \.metadata\.plugins\org.eclipse.core.resources\.projects\< project> \\ \\.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\.plugins\org.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\.plugins\org.eclipse.core.resources\.projects\<project>\.markers.snap

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

08-29 06:40