为什么eclipse闪烁并且在编辑器中加载XML的速度很慢?

时间:2021-12-09 11:33:49

My android ADT Eclipse has gotten into a state where every time I switch between XML editors it is slow. Additionally there is a flicker of the Reload Dependencies and Turn Grammar Constraints Off toolbar buttons. How do I fix this?

我的android ADT Eclipse已经进入一种状态,每次我在XML编辑器之间切换它都很慢。此外,还有一个重新加载依赖项和关闭语法约束工具栏按钮的闪烁。我该如何解决?

2 个解决方案

#1


4  

You are using Eclipse 4.2 or 4.2.1, where there is a known performance issue when switching between XML based editors. Upgrade to Eclipse 4.2.2 using the update manager.

您正在使用Eclipse 4.2或4.2.1,其中在基于XML的编辑器之间切换时存在已知的性能问题。使用更新管理器升级到Eclipse 4.2.2。

EDIT: Meanwhile Eclipse 4.3 has been released with even more performance fixes. Everyone is advised to upgrade again.

编辑:与此同时,Eclipse 4.3已经发布了更多性能修复程序。建议每个人再次升级。

#2


1  

maybe you eclips memory is low for your operation. so you can go to eclips.ini file where eclips installed and open it. you will see like this:

也许你的eclips内存对你的操作来说很低。所以你可以去安装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

then increase Xmx512m to 1024 and XX:MaxPermSize=256m to XX:MaxPermSize=1024m . hope helpfull.

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

#1


4  

You are using Eclipse 4.2 or 4.2.1, where there is a known performance issue when switching between XML based editors. Upgrade to Eclipse 4.2.2 using the update manager.

您正在使用Eclipse 4.2或4.2.1,其中在基于XML的编辑器之间切换时存在已知的性能问题。使用更新管理器升级到Eclipse 4.2.2。

EDIT: Meanwhile Eclipse 4.3 has been released with even more performance fixes. Everyone is advised to upgrade again.

编辑:与此同时,Eclipse 4.3已经发布了更多性能修复程序。建议每个人再次升级。

#2


1  

maybe you eclips memory is low for your operation. so you can go to eclips.ini file where eclips installed and open it. you will see like this:

也许你的eclips内存对你的操作来说很低。所以你可以去安装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

then increase Xmx512m to 1024 and XX:MaxPermSize=256m to XX:MaxPermSize=1024m . hope helpfull.

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