How to avoid Eclipse leaks on XServer when editing Android XML files?

…衆ロ難τιáo~ 提交于 2019-12-10 02:58:30

问题


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?


回答1:


Eclipse Juno and ADT v20 seem to be working well.




回答2:


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




回答3:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!