tomcat increase memory

Setting it in eclipse, it works,

The setting 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 setting tomcat configuration page, append the VM arguments in the parameters added at the end of Argument:

-Xms256M -Xmx512M -XX:PermSize=256m -XX:MaxPermSize=512m

The meaning of the parameter -vmargs:
the following is the parameter of the VM
-Xms40m: the minimum memory
occupied by the virtual machine of the system-Xmx256m: the maximum memory occupied by the virtual machine of the system-
XX:PermSize: the minimum stack memory size. Generally, when the memory is insufficient, it is said that this is too small, and the remaining heap space is less than 5%, and a warning will be issued.
-XX:MaxPermSize: Maximum stack memory size. This is also appropriately larger
- 5% of Xmx512M is 25.6M. In theory, the value of -Xmx and -XX:MaxPermSize must be greater than 25.6M

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326351519&siteId=291194637