1. Set Eclipse Memory usage
Modify the Eclipse.ini file under the Eclipse root directory
-vmargs//virtual machine settings
-xms40m
-xmx256m
-xx:permsize=128m//non-heap memory settings
-xx:maxpermsize=256m
2, JVM memory Settings
Open Eclipse window-preferences-java-installed jres-edit-default VM Arguments
Enter in the VM argument:-xmx128m-xms64m-xmn32m-xss16m
3, Tomcat memory settings
Open the Bin folder under the Tomcat root directory and edit Catalina.bat
Modified to: Set java_opts=-xms256m-xmx512m
In the above reprint content is one: XMS is the default virtual machine memory size, XMX is the largest memory, XSS is the size of the stack, 16 is enough.
In the setting of the time can be selected: The project operation of the label has a lower triangle--run CONFIGURATION--VM settings-according to the parameters set.
This article from CSDN Blog: http://blog.csdn.net/dafan125/archive/2009/09/08/4532756.aspx
Eclipse stack and memory size settings (reprint)