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