Eclipse Juno (4.2) 中的缓慢

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13072532/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:16:01  来源:igfitidea点击:

Slowness in Eclipse Juno (4.2)

javaeclipseeclipse-pdteclipse-juno

提问by seagoj

I've had some issues with slowness switching tabs in Eclipse 4.2 Juno and was hoping someone might have some answers. The original delay was about 10 seconds which dropped to 2-4 once I specified the java vm in the eclipse.ini file, but that's still slower than I think it should be. I've uninstalled all the addons that I thought might be offending and listed the active ones below and I believe the system to be more than adequate, but listed the specs anyway. Thanks for any help you could give me.

我在 Eclipse 4.2 Juno 中缓慢切换选项卡时遇到了一些问题,希望有人能得到一些答案。最初的延迟大约是 10 秒,一旦我在 eclipse.ini 文件中指定了 java vm,它就会下降到 2-4 秒,但这仍然比我想象的要慢。我已经卸载了所有我认为可能有问题的插件,并在下面列出了活跃的插件,我相信系统已经足够了,但无论如何都列出了规格。感谢您能给我的任何帮助。

System:
Windows 7x64
1.73 Ghz i7
8 GB RAM

系统:
Windows 7x64
1.73 Ghz i7
8 GB RAM

Eclipse Addons:
Eclipse Color Themes
PHP Development Tools (PDT)

Eclipse 插件:
Eclipse 颜色主题
PHP 开发工具 (PDT)

Eclipse.ini:

Eclipse.ini:

-vm  
C:\Program Files\Java\jre7\bin\javaw.exe  
-startup  
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar  
--launcher.library  
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813  
-showsplash  
org.eclipse.platform  
--launcher.XXMaxPermSize  
512m  
--launcher.defaultAction  
openFile  
-vmargs  
-server  
-Dosgi.requiredJavaVersion=1.7  
-Xmn256m  
-Xms4196m  
-Xmx4196m  
-Xss4m  
-XX:PermSize=256m  
-XX:MaxPermSize=256m  
-XX:+UseParallelGC  

采纳答案by E-Riz

There are some known issues with UI performance in Juno. See the lengthy discussion at https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272

Juno 中的 UI 性能存在一些已知问题。请参阅https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272 上的冗长讨论

The Juno Service Release 2 (SR2) has been released and it addresses many of the UI performance problems.

Juno Service Release 2 (SR2) 已经发布,它解决了许多 UI 性能问题。

回答by Kiran Parmar

You can install the Eclipse UI Juno SR1 Optimizations patch by following the instructions on this link, provided you are using Eclipse Juno SR1 release and are facing this slowness problem: http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation

您可以按照此链接上的说明安装 Eclipse UI Juno SR1 优化补丁,前提是您使用的是 Eclipse Juno SR1 版本并面临此缓慢问题:http: //wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation

Since the content on the above link has been updated, it does not provide the patch download part anymore. So for anyone else looking for the download details, all you need to do is install the Juno SR1 Patches--Eclipse UI Juno SR1 Optimization from the update site: http://download.eclipse.org/eclipse/updates/4.2-using the process of Help menu -> Install New Software

由于以上链接内容已更新,不再提供补丁下载部分。因此,对于寻找下载详细信息的其他人,您需要做的就是从更新站点安装 Juno SR1 补丁--Eclipse UI Juno SR1 优化:http: //download.eclipse.org/eclipse/updates/4.2-using帮助菜单 -> 安装新软件的过程

回答by user

Change the java memory heap size. Look at the -XX:PermSize=256m -XX:MaxPermSize=256m and change like for 1024m. There you go a link: http://www.jguru.com/faq/view.jsp?EID=424214

更改 java 内存堆大小。查看 -XX:PermSize=256m -XX:MaxPermSize=256m 并更改为 1024m。你有一个链接:http: //www.jguru.com/faq/view.jsp?EID=424214

回答by seninp

Try to change the theme to Classic.

尝试将主题更改为Classic.

回答by flob

all together gave my Juno a big speed boost :)

一起给我的朱诺一个很大的速度提升:)

回答by Remmelt ten Napel

I had the same problem, I upgraded to Eclipse Juno 4.2.2and my system: Intel Core 2 Quad Q9550 2.83Ghz 8,00 GB RAM Windows 7 Ultimate x64. I also use GIT.

我遇到了同样的问题,我升级到Eclipse Juno 4.2.2和我的系统:Intel Core 2 Quad Q9550 2.83Ghz 8,00 GB RAM Windows 7 Ultimate x64。我也使用GIT

When I pressed the right mouse button on my projectit took a lot of time (~ 40s) before I could do anything.

当我在我的项目上按下鼠标右键时,我花了很多时间(大约 40 秒)才能做任何事情。

That was until I ran "git gc"on my Linux server (different system) with the following result:

直到我在Linux 服务器(不同系统)上运行“git gc”,结果如下:

  • Counting objects: 6454, done.
  • Delta compression using up to 8 threads.
  • Compressing objects: 100% (5983/5983), done.
  • Writing objects: 100% (6454/6454), done.
  • Total 6454 (delta 1785), reused 0 (delta 0).
  • 计数对象:6454,完成。
  • 使用多达 8 个线程的增量压缩。
  • 压缩对象:100% (5983/5983),完成。
  • 写入对象:100% (6454/6454),完成。
  • 总计 6454(增量 1785),重用 0(增量 0)。

After that I refreshed my project and since then the right mouse button actionresponse is instant.

之后我刷新了我的项目,从那时起鼠标右键动作响应是即时的。

I hope this helps anyone, I just had to share this with you.

我希望这对任何人都有帮助,我只是不得不与您分享。

My Eclipse ini:

我的 Eclipse ini:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-server
-Xmn128m
-Xms2048m
-Xmx2048m

回答by Philipp Cla?en

Upgrading to Eclipse 4.3 gave me a huge performance boost.

升级到 Eclipse 4.3 给了我巨大的性能提升。

Seems like they fixed a lot of performance bugs in the new release.

似乎他们在新版本中修复了许多性能错误。

回答by MAZDA

Open Eclipse, Go to Windows>Close All Perspective then confirm and let Eclipse to restart.

打开 Eclipse,转到 Windows>Close All Perspective 然后确认并让 Eclipse 重新启动。

回答by Gábor Lipták

I could not update my eclipse with the maintenance build, but I have found an unofficial patch in the eclipse issue tracker, which made my eclipse a lot faster. See this answer: https://stackoverflow.com/a/13470794/337621

我无法使用维护版本更新我的 eclipse,但是我在 eclipse 问题跟踪器中找到了一个非官方补丁,这使我的 eclipse 速度快了很多。看到这个答案:https: //stackoverflow.com/a/13470794/337621

回答by Grzegorz Grzybek

Install 4.3M4 - they've made significant speed improvements there and now I've finally made a switch from 3.8 :)

安装 4.3M4 - 他们在那里取得了显着的速度改进,现在我终于从 3.8 切换了:)