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: