Double-click the Tomcat server in Eclipse, click on "Open launch Configuration", in the pop-up dialog, select arguments, in VM arguments
Additional:
-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
Eclipse Package Memory Overflow workaround