Java. lang. OutOfMemoryError: Java heap space Solution

Source: Internet
Author: User

Java. lang. OutOfMemoryError: Java heap space exception may be caused by the JAVA stack setting being too small.

There are roughly two solutions based on the answers on the Internet:

1. Add set JAVA_OPTS =-Xms200m-Xmx512m at the beginning of D:/apache-tomcat-6.0.18/bin/catalina. bat.

Note: The setting takes effect only when tomcat is started by startup. bat. If the tomcat service is started by using windows system services, the above settings will not take effect,
That is to say, set JAVA_OPTS =-Xms200m-Xmx512m does not work.

2. Modify the startup parameters in Eclilpse and add-Xms200m-Xmx512m to the VM arguments, as shown in.

Solve the problem.

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.