Configuring Tomcat Memory under Eclipse

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.