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
The meaning of the parameter
-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
Configuring Tomcat Memory under Eclipse