MyEclipse launch Tomcat project out of Memory:java heap space

Source: Internet
Author: User

Problem:

Booting Tomcat in MyEclipse, reporting insufficient memory during program startup, Java.lang.OutOfMemoryError:Java Heap space

From the error it can be seen that the heap memory is too small to configure the JVM heap memory size.

Changes need to be made from three locations:

1, modify from intalled JREs; window->preferences->java->installed jres, select the current JRE and edit it;

Set the default VM arguments to-xms512m-xmx1024m in a new window ; This setting is valid for all projects (previously encountered because of the small configuration here, covered by the Tomcat configuration, resulting in or not)

2, if only want to be effective for a project, from the debug ... or run ... In the (x) =arguments, the same parameters as above can be set;

3, if the kitten Tomcat words, window->preferences->application Servers->tomcat->tomcat 6.x, select the JDK settings can be;

MyEclipse launch Tomcat project out of Memory:java heap space

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.