【问题标题】:Why does eclipse flicker and is slow to load XML in Editors?为什么eclipse会闪烁并且在编辑器中加载XML很慢?
【发布时间】:2013-03-06 09:21:18
【问题描述】:

我的 android ADT Eclipse 已进入每次我在 XML 编辑器之间切换时速度很慢的状态。此外,还有 Reload DependenciesTurn Grammar Constraints Off 工具栏按钮闪烁。我该如何解决这个问题?

【问题讨论】:

标签: xml eclipse performance editor flicker


【解决方案1】:

您使用的是 Eclipse 4.2 或 4.2.1,在基于 XML 的编辑器之间切换时会有known performance issue。使用更新管理器升级到 Eclipse 4.2.2。

编辑:同时 Eclipse 4.3 已发布,其中包含更多性能修复。建议大家再次升级。

【讨论】:

    【解决方案2】:

    也许您的操作内存不足。因此您可以转到安装了 eclips 的 eclips.ini 文件并打开它。你会看到这样的:

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140116-2212
    -product
    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
    

    然后将 Xmx512m 增加到 1024 并将 XX:MaxPermSize=256m 增加到 XX:MaxPermSize=1024m 。希望有帮助。

    【讨论】:

      猜你喜欢
      • 2017-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-07
      • 2013-05-26
      相关资源
      最近更新 更多