"Go" Eclipse memory settings, tomcat memory settings, view memory size

Source: Internet
Author: User

Original URL: http://www.cnblogs.com/youngjoy/p/4239978.html

The memory size of Eclipse and the size of Tomcat's memory can be viewed first through Java VISUALVM under Java/jdk/bin, mainly in the heap, PermGen two sizes

In most cases, eclipse throws a memory overflow error that is not necessarily just the size of eclipse memory and can be viewed by the tool above to see what caused the memory overflow error

If this is an error caused by an Eclipse memory overflow, modify the Eclipse.ini file as follows

-xms128m
-xmx512m
-xx:permsize=512m
-xx:maxpermsize=1024m

If this is an error caused by a Tomcat memory overflow, add this parameter

-xms128m-xmx512m-xx:permsize=512m-xx:maxpermsize=1024m

This was added because I introduced Tomcat as a plug-in into eclipse. If you are using server, refer to the following:

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

http://blog.csdn.net/zhouyong0/article/details/8464181

"Go" Eclipse memory settings, tomcat memory settings, view memory size

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.