MyEclipse using Tomcat to report the OutOfMemoryError solution

Source: Internet
Author: User

First figure out how to report this memory overflow problem, this issue occurs first to exclude the program is caused by error code. If you have been working properly before, and have reported this error suddenly due to some features or modifications, then we should be wondering if this is a problem for our environment?

Determine how the reported memory overflow problem is being manipulated:

1. If you start the Tomcat (run Startup.bat) error individually, you can modify the Catalina.bat file (assuming it is in Windows):

After the "REM-----Execute The requested Command---------------------------------------" line, "Echo Using catalina_base:"% Catalina_base% "" Before this line, add:

Set java_opts=%java_opts%-server-xx:permsize=512m-xx:maxpermsize=512m
Start Tomcat,ok again;

2. In MyEclipse, you need to modify the parameter settings of the JVM in the interface shown:

Set in Optional Java VM arguments:

-xms512m-xmx512m-xx:permsize=512m-xx:maxpermsize=512m

Okay, you can start Tomcat.

MyEclipse using Tomcat to report the OutOfMemoryError solution

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.