Error “java heap size” in Eclipse Android?

丶灬走出姿态 提交于 2019-11-28 06:05:38

问题


When I'm using the graphical layout editor after 5-10 minutes of working I get the error "java heap size". I tried to increase size in eclipse.ini: -Xms512m -Xmx1024m But it doesn't helped. Please tell me who encountered this problem and how to solve it?


回答1:


Your eclipse.ini settings will take effect only if you change following:

Run -> External Tools -> External Tool

Configurations. go to configuration that u use, under jre tab -select option

Run in same JRE in workspace.

For more info on the topic have a look at this link. What are the best JVM settings for Eclipse?




回答2:


If sometimes you get this error and smetimes doesn't then It might happens because RAM is being used by other processes which require large memory. Close all the other Applications/processes and try to start/load the eclipse. It works.




回答3:


You can set this on the command line before running eclipse so that eclipse has more mem: How do I set Java's min and max heap size through environment variables?



来源:https://stackoverflow.com/questions/15393215/error-java-heap-size-in-eclipse-android

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