When I'm editing XML files in Eclipse (mainly, Android layouts and so), it causes leaks on XServer and it ends eating all my RAM (4GB), so I have to Ctrl+Alt+Backspace to continue.
Do you know any remedy for that?
Eclipse Juno and ADT v20 seem to be working well.
It might help if you start eclipse off your java interpreter with a garbage collector enabled via the command line. Something like this could work:
java /path/to/eclipse -XX:+UseParallelGC
You could also add some swap space to your computer as a final option, but of course that's one step above asking you to go out and buy more ram.
For more information on garbage collection in java, look here
I've seen this issue using eclipse in Linux and Windows, and it sucks!
Try reverting your ADT installation to a previous version.
go to: help --> install new software at the lower right-hand corner click what is "ALREADY INSTALLED"?
click the Installation History tab
you'll see a list of time stamps and hopefully you'll have a older version of ADT to revert to
Hopefully that fixes all of "our" problems until a update is released!
来源:https://stackoverflow.com/questions/2561161/how-to-avoid-eclipse-leaks-on-xserver-when-editing-android-xml-files