为什么 Eclipse + ADT插件使CPU保持在100%
第二次我从 Eclipse 示例插件中的简单框架应用程序打开layout.xml 文件时,CPU 使用率锁定了 IE 的 25%。 1 个全核。过去 30 分钟一直这样,我想让他运行更长时间,因为我认为它正在后台运行,但它只是一直这样做。
到目前为止我已经在 2 台计算机上进行了测试,设置是 安装Android SDK, 为 Java 开发人员安装 Eclipse IDE, 安装ADT插件:http://dl-ssl.google.com/android/eclipse/ 打开新项目,选择Android 2.3.3的骨架项目 只需打开布局骨架活动,也许在右上角更改为 android 2.3.3,也许设置为 theme.black.noTitleBar.Fullscreen。
现在你的处理器应该达到 100%(在一个核心上),并且从现在开始应该像这样锁定。
这个问题有什么解决办法吗,因为我家里只有 1 个核心,无法做任何事情。
有谁知道为什么会发生这种情况? http://my.jetscreenshot.com/demo/20110517-gbr8-201kb
The second I open up layout.xml file from a simple skeleton app in Eclipse example plugin, the cpu usage locks up to 25% IE. 1 full core. and it's been on like this for the last 30minutes I wanted to let him run a longer time because I thought it is working something in the background but it just keeps doing that.
I've tested this on 2computers so far and the setup is
install Android SDK,
install Eclipse IDE for Java Developers,
install ADT plugin: http://dl-ssl.google.com/android/eclipse/
open new project, select a skeleton project for Android 2.3.3
and just open the layout skeleton activity and perhaps change to android 2.3.3 in the upper right corner and maybe setup to theme.black.noTitleBar.Fullscreen.
And now your processor should be hitting 100% ( on one core ) and should be locked like that from now on.
Is there any solution to this issue, because at home I only have 1 core and I can not work on anything.
Does any one have any clue as to why this is happening ?
http://my.jetscreenshot.com/demo/20110517-gbr8-201kb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我遇到了同样的问题,因此我在 http:// /code.google.com/p/android/issues/detail?id=18865。
Android 团队现在已经发布了一个修复程序,它对我有用。您必须将通过 android 工具下载的每个 SDK 模块升级到最新版本。最新版本的 ADT 还修复了一些长期存在的问题。
I'm seeing the same issue so I filed a bug report at http://code.google.com/p/android/issues/detail?id=18865.
The Android team have now released a fix and it works for me. You have to upgrade to the latest revision of each SDK module that you downloaded through the android tool. The latest version of the ADT also has a number of fixed for long-standing issues.
我无法回答“为什么”会发生这种情况。但我可以说出解决办法。
我在 Ubuntu 12.04 64 位上遇到了这个问题。当我切换到调试视图时,我的 cpu 和 eclipse 挂起 100% - Eclipse 无法使用,不得不终止它。我发现了以下错误报告
https://code.google.com/p /android/issues/detail?id=34641
按照那里的评论,我尝试了
当我切换到调试视图时,Eclipse 没有挂起(没有 100% cpu)。
I can't answer "Why" this happens. But I can say what fixes it.
I encountered this on Ubuntu 12.04 64 bit. I had 100% cpu and eclipse hang when I switched to debug view - Eclipse was unusable and had to kill it. I found the below bug report
https://code.google.com/p/android/issues/detail?id=34641
Following the comments there, I tried
Eclipse did not hang (no 100% cpu) when I switched to debug view.
使用
-Dcom.sun.management.jmxremote
启动Eclipse(将其放入eclipse.ini
或使用此选项启动eclipse.exe
)。当 Eclipse 运行时,启动 jconsole 并查看线程转储以查看哪个线程占用CPU。这是一个不
等待
的人。提交错误报告。Start Eclipse with
-Dcom.sun.management.jmxremote
(put it intoeclipse.ini
or starteclipse.exe
with this option).When Eclipse runs, start jconsole and look at the thread dump to see which thread hogs the CPU. It's the one which isn't
WAITING
. File a bug report.我遇到了同样的问题,只需将我的工作区移动到 C:/workspace 而不是 Win 7 Libraries 即可解决。
I had the same problem and it was resolved just by moving my workspace to
C:/workspace
instead of Win 7Libraries
.