Configure Tomcat startup parameters in eclipse

Source: Internet
Author: User

Start myeclipse and start Tomcat to ignore the problem of setting the memory size in Catalina. bat.
Set java_opts =-xms128m-xmx256m in Tomcat Catalina. BAT and start Tomcat directly using startup. bat. However, after Tomcat is configured in myeclipse, memory overflow occurs when started through myeclipse. The memory configured in Catalina. bat does not seem to work.
Solution: Enter the content in window-> preferences-> myecliipse-> application servers-> tomcat-> tomcat5.x-> JDK-> optional Java VM arguments.
-Xms128m-xmx256m
-DCOM. Sun. Management. jmxremote = true
The memory size depends on the actual situation.

Tomcat is divided into installation and compressed packages. Catalina is installed. the System Service set and used by Bat does not take effect, but is stored in the registry. The location is HKEY_LOCAL_MACHINE \ SOFTWARE \ Apache Software Foundation \ Tomcat Service Manager \ tomcat5 \ Parameters \ javaoptions.
 
Http://wm20000.spaces.live.com/blog/cns! 1c017dc99cce4395! 1738. Entry

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.