为什么我的 Eclipse 一直没有响应?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11638964/
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
Why does my Eclipse keep not responding?
提问by Cole
I'm using Eclipse, and at random times, it will just freeze up and stop responding. Does this happen to anyone else? It usually happens when I click on a line of code, whether it be Java or XML. Any ideas on how to fix it?
我正在使用 Eclipse,并且在随机时间,它会冻结并停止响应。其他人也有遇到同样的状况吗?它通常发生在我单击一行代码时,无论是 Java 还是 XML。关于如何解决它的任何想法?
System Specs:
系统规格:
回答by Ajay George
Open your workspace\.metadata\.log
file. That will tell you usually what is going wrong.
打开你的workspace\.metadata\.log
文件。这通常会告诉您出了什么问题。
回答by LoveProgramming
Try this, it worked for me!
试试这个,它对我有用!
If you happen to have Eclipse not responding anymore sometimes, the reason could be that you sit on a 64bit machine where eclipse needs more memory. Be sure to have (at least) the following configurations in your eclipse.ini (I even use bigger values for the PermSizes):
如果您碰巧有时 Eclipse 不再响应,原因可能是您坐在 64 位机器上,而 Eclipse 需要更多内存。确保(至少)在您的 eclipse.ini 中有以下配置(我什至为 PermSizes 使用了更大的值):
-Xms512m
-Xmx1024m
-XX:PermSize=64m
-XX:MaxPermSize=128m
回答by eeadev
回答by Someone Somewhere
Last night at 2am I closed my Eclipse (Juno) just fine. This morning I open it up and I get nothing but "Not Responding" on my 64bit Windows 7 machine.
昨晚凌晨 2 点我关闭了我的 Eclipse (Juno) 就好了。今天早上我打开它,在我的 64 位 Windows 7 机器上,除了“无响应”之外什么也没有。
I looked in [workspace]\.metadata\.log
and it showed an error with Invalid property category path: ValidationPropertiesPage
我看了看,[workspace]\.metadata\.log
它显示了一个错误Invalid property category path: ValidationPropertiesPage
I cuss it out pretty good and then show it who's the boss :
我骂得很好,然后告诉它谁是老板:
- delete
[workspace]\.metadata
folder - delete
[workspace]\[project]\.settings
- Open up Eclipse to the same workspace as before, re-import your project.
- 删除
[workspace]\.metadata
文件夹 - 删除
[workspace]\[project]\.settings
- 打开 Eclipse 到与以前相同的工作区,重新导入您的项目。
Which brings me to another topic... Eclipse -> import -> Android -> Existing Android code into workspace... seems to be broken once again. But that's a different topic.
这让我想到了另一个话题……Eclipse -> import -> Android -> Existing Android code into workspace... 似乎又一次被破坏了。但这是一个不同的话题。
回答by m_at_vidavia
I had similar symptoms recently. Turned out it was caused by the Subversion server being unavailable - once that was restarted I was able to right-click. My environment was Eclipse Luna with Subclipse.
我最近有类似的症状。原来它是由 Subversion 服务器不可用引起的 - 一旦重新启动,我就可以右键单击。我的环境是带有 Subclipse 的 Eclipse Luna。
So worth checking that any connected source control systems are operational. Hope that helps.
因此值得检查任何连接的源控制系统是否正常运行。希望有帮助。
回答by Ryan Donovan
Very likely your filesystem is out of sync with your Eclipse... Resource is out of sync with the file system. Using SVN? If you "Refresh" all of your projects in explorer, speed returns to normal.
很可能您的文件系统与您的 Eclipse 不同步...资源与文件系统不同步。使用SVN?如果您在资源管理器中“刷新”所有项目,速度将恢复正常。
回答by Kacy
I kept running into this problem every time I tried opening eclipse. I resolved it by unplugging my android device's USB from my laptop, and eclipse worked again.
每次尝试打开 eclipse 时,我都会遇到这个问题。我通过从笔记本电脑上拔下我的 android 设备的 USB 来解决它,并且 eclipse 再次工作。
回答by mel3kings
for me, it was because of all the outgoing files, i.e workspace is not in sync with SVN, due to the 'target' folders (maven project, or when building web project), add them to svn:ignore.
对我来说,这是因为所有传出文件,即工作区与 SVN 不同步,由于“目标”文件夹(maven 项目,或在构建 web 项目时),将它们添加到 svn:ignore。
回答by Umit Kaya
If there is a project you earlier imported externally (outside of Workspace), that may cause this problem. If you can access Eclipse try to remove it. If you are getting the 'No responding at startup', then go delete the file at source.
如果您之前从外部(在Workspace之外)导入了一个项目,则可能会导致此问题。如果您可以访问 Eclipse,请尝试将其删除。如果您收到“启动时无响应”的消息,请从源头删除该文件。
This will solve the problem.
这将解决问题。
回答by Luki B. Subekti
I had a problem like you. But I am Windows 8.1 64 bit user. At first I use eclipse Kepler on my 8.1. The eclipse often become not responding when I worked on. After that, I decide to back to eclipse Juno and it works fine now.
我和你一样有问题。但我是 Windows 8.1 64 位用户。起初我在我的 8.1 上使用 eclipse Kepler。当我工作时,日食经常变得没有反应。在那之后,我决定回到 eclipse Juno,现在它工作正常。