Tomcat performance Adjustment

Source: Internet
Author: User

Tomcat performance adjustment adjusted JVM maximum memory usage value 1. Windows Version

Assume that the path of the server you installed is E: \ turbomail. If it is another path, you can modify it accordingly.

1) uninstall the original webmail service.

Go to the E: \ turbomail \ WEB \ bin directory and run E: \ turbomail \ WEB \ bin> turbomail_web.exe-uninstall turbomail_web (tomcat5). Then the system prompts the turbomail_web (tomcat5) service was successfully uninstalled. indicates that the uninstall is successful.

2) modify the installtomcat_x.bat file in the same directory, find-xms125m-xmx512m, and change it to the memory size you want to set. 3) reinstall the webmail service.

Run the following name, where E: \ turbomail \ JDK is the JDK directory, and E: \ turbomail \ Web is the Tomcat server directory e: \ turbomail \ WEB \ bin> installtomcat_x.bat E: \ turbomail \ jdk e: \ turbomail \ Web after execution, the system will prompt:

Indicates that the new webmail service is successfully installed. The added items are HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ turbomail_web (tomcat5 ).

2. Unix/Linux

Open the Web/bin/Catalina. Sh file and add the following line java_opts = "-xmx512m" under the comment line ("#"). The specific memory size varies depending on the system situation.

Adjust Tomcat Parameters

Open the file Web/CONF/server. xml and adjust the following parameters:

1. disable DNS Lookup

set the connector/enablelookups parameter to false. For example:

2. Adjust the maximum number of threads

adjust the connnector/maxthreads parameter to a suitable value, generally, this value is 100 to 200 larger than the maximum number of concurrent workers on the server. Example:

3. Disable Automatic deployment

set autodeploy of connector/engin/host to false, example:


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.