Eclipse
The JVM size is set in the startup parameters, because JVM is also required during eclipse runtime, so the JVM size set in eclipse. INI is not a specific one.ProgramUsed during running
The JVM size, which is irrelevant to the JVM size of the specific program running.
So how can we set the JVM size of a program? (of course, this problem does not exist if the console runs, for example, Java-xms256m-xmx1024m.
Classname, so that the JVM size of the current program can be set )?
The default JVM configuration of a program in eclipse is-xms8m.
-Xmx128m, so we need to manually adjust the memory consumption during processing to avoid memory overflow. The specific setting method is as follows:
Select the running class, click 'run-> Run... 'in the menu, and enter in the VM arguments box under the (x) = argument tab.
-Xmx512m: Save and run it.
1:
2: