Eclipse 4.2 非常慢,如何使其响应更快?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11446825/
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
Very slow Eclipse 4.2, how to make it more responsive?
提问by laurent
I'm using Eclipse PDT on a rather large PHP project and the IDE is almost unusable. It takes nearly 30 seconds to open a file, and other actions, like selecting a folder in the file explorer, editing some text, etc. are equally slow.
我在一个相当大的 PHP 项目上使用 Eclipse PDT,而 IDE 几乎无法使用。打开一个文件需要将近 30 秒,而其他操作,例如在文件资源管理器中选择文件夹、编辑一些文本等,同样很慢。
I followed various instructions to speed it up but nothing seems to work. This is my current eclipse.ini
file. Any idea how I can improve it?
我按照各种说明来加快速度,但似乎没有任何效果。这是我当前的eclipse.ini
文件。知道如何改进它吗?
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-server
-Dosgi.requiredJavaVersion=1.7
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+UseParallelGC
System: Eclipse 4.2.0, Windows 7, 4 GB RAM
系统:Eclipse 4.2.0、Windows 7、4 GB RAM
采纳答案by Francis Upton IV
Actually in looking at your machine configuration, you should make sure nothing else is going on in the machine and experiment with reducing your required memory, say something like -Xmx512m. If you are requesting too much heap space, then it's possible you are doing a lot of OS paging.
实际上,在查看您的机器配置时,您应该确保机器中没有其他任何事情并尝试减少所需的内存,例如 -Xmx512m。如果您请求太多堆空间,那么您可能正在执行大量操作系统分页。
回答by thoredge
It looks like Eclipse in silence have created a fix and announced it in all secracy through their wiki (!). It seems to alleviate the problems for me at least; though I have not tested it in length yet.
看起来 Eclipse 在沉默中创建了一个修复程序,并通过他们的 wiki (!) 在所有秘密中宣布了它。它似乎至少减轻了我的问题;虽然我还没有对其进行长度测试。
See http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
请参阅http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
Basically you should install the "Juno SR1 Patches/Eclipse UI Juno SR1 Optimization" from their 4.2 update site: http://download.eclipse.org/eclipse/updates/4.2
基本上你应该从他们的 4.2 更新站点安装“Juno SR1 Patches/Eclipse UI Juno SR1 Optimization”:http: //download.eclipse.org/eclipse/updates/4.2
Bug-tracking for this optimization: https://bugs.eclipse.org/bugs/show_bug.cgi?id=394588
此优化的错误跟踪:https: //bugs.eclipse.org/bugs/show_bug.cgi?id=394588
回答by stot
There are known performance issues with PDT 3.1 and eclipse 4.2 (juno).
PDT 3.1 和 eclipse 4.2 (juno) 存在已知的性能问题。
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272
This is the solution:
这是解决方案:
Open a different perspective (for example java, but not php) and restart eclipse. Afterwards you can savely switch back to php perspective. Eclipse will have no performance issues.
打开一个不同的透视图(例如 java,但不是 php)并重新启动 eclipse。之后,您可以轻松地切换回 php 透视图。Eclipse 不会有性能问题。
Also mentioned here
这里也提到
回答by TahitianGabriel
There is also a known bug which makes eclipse juno slow on some systems :
还有一个已知的错误使 eclipse juno 在某些系统上变慢:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272
A workaround seems to be to delete the workbench.xmi
file.
解决方法似乎是删除该workbench.xmi
文件。
回答by Chris Coles
From http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
来自http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
- Ensure you are already running on a package from the Juno SR1 release (September 2012)
- Invoke Help > Install New Software
- Select this repository: http://download.eclipse.org/eclipse/updates/4.2
- Expand Juno SR1 Patches and install Eclipse UI Juno SR1 Optimizations
- 确保您已经在运行 Juno SR1 版本(2012 年 9 月)中的包
- 调用帮助 > 安装新软件
- 选择这个存储库:http: //download.eclipse.org/eclipse/updates/4.2
- 展开 Juno SR1 Patches 并安装 Eclipse UI Juno SR1 Optimizations
Worked for me
对我来说有效
回答by Nimroo
I was having similar issues with the Eclipse and the ARM emulator running. When I switched from tab to tab on Eclipse it would take 5 seconds for it to switch over and Eclipse would be in a "Not Responding" mode for a moment. I actually increased my heap memory on my eclipse.ini by using -Xmx1024m. It fixed the issue.
我在运行 Eclipse 和 ARM 模拟器时遇到了类似的问题。当我在 Eclipse 上从选项卡切换到选项卡时,它需要 5 秒钟才能切换,并且 Eclipse 会暂时处于“无响应”模式。我实际上通过使用 -Xmx1024m 增加了 eclipse.ini 上的堆内存。它解决了这个问题。
回答by Dean Peterson
I was having huge problems with performance (switching between editor windows was SLOW). I modified the eclipse.ini file to use -Xmx1024m rather than -Xmx512m and the performance is much better.
我在性能方面遇到了很大的问题(在编辑器窗口之间切换很慢)。我修改了 eclipse.ini 文件以使用 -Xmx1024m 而不是 -Xmx512m 并且性能要好得多。
Update -- After a while I started noticing the fix above did not make my problems go away entirely. I did find another post above helpful. I install the Spring Source Toolsuite plugin and I believe that may be the source of the slowness. After installing the patch at the following link, Eclipse is running much more smoothly: http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
更新 - 一段时间后,我开始注意到上述修复并没有使我的问题完全消失。我确实发现上面的另一篇文章很有帮助。我安装了 Spring Source Toolsuite 插件,我相信这可能是缓慢的根源。在以下链接安装补丁后,Eclipse 运行更加流畅:http: //wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
回答by Jeto
I had very big UI performance issues upon switching to 4.2 (using PDT) and after investigating for a while, I noticed it was due to... the PHP perspective. That doesn't make any sense, but I could confirm it on two different computers.
在切换到 4.2(使用 PDT)时,我遇到了非常大的 UI 性能问题,经过一段时间的调查,我注意到这是由于... PHP 的观点。这没有任何意义,但我可以在两台不同的计算机上确认。
Try switching to another one (like, the Resource one), then restart Eclipse (last part is important).
尝试切换到另一个(例如 Resource ),然后重新启动 Eclipse(最后一部分很重要)。
Let me know if that helped.
如果这有帮助,请告诉我。
回答by John Simon
Eclipse 4.2 Service Release 2 was released a few days ago (1 Mar 2013. It is the result of the all of these investigations and the patches suggested previously. Give it a shot!
几天前(2013 年 3 月 1 日)发布了 Eclipse 4.2 Service Release 2。这是所有这些调查和之前建议的补丁的结果。试一试!
回答by jhgoebbert
Make sure you have turned off "show whitespace characters" on Linux. (https://bugs.eclipse.org/bugs/show_bug.cgi?id=320595)
确保您已关闭 Linux 上的“显示空白字符”。( https://bugs.eclipse.org/bugs/show_bug.cgi?id=320595)