The method of adjusting eclipse memory on the internet indicates that the JVM parameters can be set in the Eclipse.ini file. But running the program still found that the memory has not changed, not the set of 1024M, but still 107M (the default program in Eclipse JVM configuration is:-xms8m-xmx128m).
The reason for the error is that the Eclipse runtime needs the JVM itself, which sets Eclipse.ini's JVM parameters. Therefore, the JVM size set in Eclipse.ini is not the size of the JVM used by a particular program to run, regardless of the size of the JVM the program is running on.
1. How can you set the JVM size of a program (and of course the console runs without this problem, such as: java-xms256m-xmx1024m classname, so you can set the JVM size of the current program)?
The Setup method is obvious: Select the class that will run, right-select the Run Configuration ..., select (x) =argument tab, enter-xmx1024m in its VM arguments box, save run OK
http://targenardy.blog.163.com/blog/static/453653252010115102426160/
2. Set Eclipse window----preferebces--->>java---->>installed jres-->>> Select JDK Edit---->> Set VM Size
-xms128m-xmx512m or larger
This article is from the "XML file read and write" blog, so be sure to keep this source http://olymtechjava.blog.51cto.com/8177318/1621953
Eclipse Memory Space JVM settings