Tomcat cache settings in Eclipse

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 parameters

-vmargs: The description is followed by the parameters of the VM

-Xms40m: The virtual machine occupies the minimum memory of the system

-Xmx256m: The maximum memory that the virtual machine occupies in the system

-XX:PermSize: 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. It is recommended to set this slightly larger, but it depends on the size of your machine's memory.

-XX:MaxPermSize: Maximum stack memory size. This is also a bit bigger

5% of -Xmx512M is 25.6M. In theory, the value of -Xmx and -XX:MaxPermSize must be greater than 25.6M

 

 

 

Transfer: http://www.cnblogs.com/jerome-rong/archive/2012/05/15/2501027.html

 

Analysis of heap memory and stack memory allocation in Java: http://soft.chinabyte.com/database/407/11319907.shtml

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326801824&siteId=291194637