Original URL: http://www.cnblogs.com/youngjoy/p/4239978.html
The memory size of Eclipse and the size of Tomcat's memory can be viewed first through Java VISUALVM under Java/jdk/bin, mainly in the heap, PermGen two sizes
In most cases, eclipse throws a memory overflow error that is not necessarily just the size of eclipse memory and can be viewed by the tool above to see what caused the memory overflow error
If this is an error caused by an Eclipse memory overflow, modify the Eclipse.ini file as follows
-xms128m
-xmx512m
-xx:permsize=512m
-xx:maxpermsize=1024m
If this is an error caused by a Tomcat memory overflow, add this parameter
-xms128m-xmx512m-xx:permsize=512m-xx:maxpermsize=1024m
This was added because I introduced Tomcat as a plug-in into eclipse. If you are using server, refer to the following:
Set in Eclipse, incredibly,
The setup steps are as follows:
1. Click the drop-down arrow next to the Debug icon on eclipse
2. Then select Run Configurations,
3. The system pops up the Tomcat configuration page, appended in VM arguments at the end of the add parameter in argument:
-xms256m-xmx512m-xx:permsize=256m-xx:maxpermsize=512m
http://blog.csdn.net/zhouyong0/article/details/8464181
"Go" Eclipse memory settings, tomcat memory settings, view memory size