Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ The correct method to modify the maximum number of concurrent connections Tomcat 7     - Mhddfs: multiple smaller partitions into one large virtual storage (Linux)

- Ubuntu system cp: omitting directory problem (Linux)

- Encounter ORA-00600: internal error code, arguments: [4194] ORA-1552 (Database)

- Ubuntu 14.04 Configuring cuda-convnet (Linux)

- Linux operating system to solve a serious fault handling (Linux)

- Some practical tips Linux (Linux)

- Linux excellent text editor (Markdown, LaTeX, MathJax) (Linux)

- Chrome plug-in management, online-offline installation, part of the plug presentations (Linux)

- RVM installation instructions (Linux)

- CentOS 6.5 x86_64 system customized automated deployment (Linux)

- A command to install Sublime Text 3 on Manjaro / Archlinux (Linux)

- GNU / Linux enable Intel Rapid Start (Linux)

- wget command Walkthrough (Linux)

- Use lsof restore accidentally deleted log files or database (Linux)

- Linux find command detailing (Linux)

- LMMS 1.03 install on Ubuntu 14.04 (Linux)

- Use Elasticsearch + Logstash + Kibana set up centralized log Practice Analysis Platform (Server)

- Use Vagrant build cross-platform development environment for Python (Server)

- Git and GitHub use of Eclipse and Android Studio (Programming)

- CentOS7 management of systemd (Linux)

 
         
  The correct method to modify the maximum number of concurrent connections Tomcat 7
     
  Add Date : 2018-11-21      
         
         
         
  This is a very simple question, but search around and found everyone wrong. So to sum up here:

Almost all Chinese pages are introduced to modify the default maximum number of concurrent connections Tomcat should be set as follows (these steps are actually wrong):

--------------------------------------------

In the tomcat server.xml configuration file in the configuration, and connection-related parameters are:

minProcessors: Minimum idle connection threads, used to improve the processing performance of the system, the default value is 10
maxProcessors: maximum number of connections of threads, namely: the maximum number of requests processed concurrently, the default value is 75
acceptCount: The maximum number of allowed connections, should be greater than or equal maxProcessors, default is 100
enableLookups: whether reverse lookup domain name, the value is: true or false. In order to increase processing capacity, should be set to false
connectionTimeout: Network connection timeout, unit: milliseconds. Set to 0 to never time out, this is provided with risks. Usually set to 30000 milliseconds.
Wherein the maximum number of connections and parameters related to maxProcessors and acceptCount. If you want to increase the number of concurrent connections, should also increase these two parameters.
The maximum number of connections allowed web server is also subject to the operating system kernel parameter settings, usually Windows is about 2000, Linux is about 1,000. Unix how to set these parameters, see the Unix commands commonly used to monitor and manage

Specific configuration information:
Java code