Modify the memory size of Tomcat under Eclipse/resolve memory Overflow

Source: Internet
Author: User

After we install eclipse, we have a file named Eclipse.ini in our installation directory.

The contents of the open file are as follows:

 -startupplugins /org.eclipse.equinox.launcher_1.3.100.v20150511-1540. jar--launcher . libraryplugins /org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300. V20150602-1417-productorg . Eclipse.epp.package.jee. product--launcher . defaultactionopenfile--launcher . xxmaxpermsize256m-showsplashorg . Eclipse. platform--launcher . xxmaxpermsize256m--launcher . defaultactionopenfile--launcher . appendvmargs-vmargs-dosgi   .requiredjavaversion=1.7- xms256m-xmx1024m   

-vmargs: Description follows the parameters of the VM

-dosgi.requiredjavaversion=1.7 Description The required Java version is 1.7

-xms256m: Indicates that the minimum memory for the virtual machine occupies the system is 256M.

-XMX1024M: Indicates that the maximum memory for the virtual machine occupies the system is 1024M.

We can also add some additional parameter configurations in this area:

For example:

-xx:permsize: Minimum heap size.

Generally reported insufficient memory, are said that this is too small, the remaining capacity of the heap space is less than 5% will be warned, it is recommended to set this slightly larger, depending on the size of their own machine memory settings

-xx:maxpermsize: Maximum heap 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

Modify the memory size of Tomcat under Eclipse/resolve memory Overflow

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.