Steps:
1. Click Run
2. 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
Noun Explanation:
-vmargs: Description follows the parameters of the VM
-xms40m: Virtual machine occupies the minimum memory of the system
-xmx256m: Virtual machine occupies the maximum memory of the system
-xx:permsize: Minimum stack memory size. Generally reported insufficient memory, is said that this is too small, heap space remaining less than 5% will be warned, it is recommended to set this slightly larger, but depending on the size of their own machine memory to set
-xx:maxpermsize: Maximum stack memory size. This one's a little bigger.
-xmx512m 5% is 25.6M, theoretically requires-XMX value and-xx:maxpermsize must be greater than 25.6M
Partly transferred from: http://blog.csdn.net/w420372197/article/details/7878404
Tomcat memory setting size (RPM) under Eclipse