Solve the running prompt outofmemory during Tomcat debugging in eclipse.

Source: Internet
Author: User

Recently, I used the Tomcat plug-in integrated with eclipse to debug the spring + hibernate + Struts system. The system will always prompt outofmemory after some operations

 

After this prompt appears, the first thought is to set Catalina. bat in the Tomcat Startup File.

 

 

Set java_opts =-xms256m-xmx1024m

After setting, start Tomcat and continue. However, outofmemory appeared very unfriendly again after some operations. When you browse csdn, you can see that Article"Solve the problem of outofmemory compilation in Eclipse" http://blog.csdn.net/froole/archive/2009/04/08/4057164.aspx. I also made two settings in eclipse. Window-> preferences-> JAVA-> installed jres click Edit .. add the appropriate parameters to the default VM arguments, for example,-xmx1024mtomcat-> JVM settings Add "-xmx1024m" in append to JVM parameters.

 

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.