Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does eclipse flicker and is slow to load XML in Editors?

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?

like image 323
ooolala Avatar asked Mar 18 '13 05:03

ooolala


People also ask

Does Eclipse support XML?

Eclipse XML Editors and ToolsIncludes the XML, XML Schema, and DTD Editors and Tools, and XSL Developer Tools from the Eclipse Web Tools Platform project.

Why XML file is not opening in eclipse?

To open XML files in the default editor: In the DITA CMS Eclipse Client, click Window > Preferences. In the left pane, click DITA CMS > General Behavior. Clear the Open unlocked document in Read-only Editor checkbox.


2 Answers

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.

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

like image 186
Bananeweizen Avatar answered Oct 16 '22 08:10

Bananeweizen


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:

-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.

like image 42
Mahdi Avatar answered Oct 16 '22 08:10

Mahdi