A Preliminary Exploration of Tomcat Concurrent Performance Optimization

minProcessors: the minimum number of idle connection threads, used to improve system processing performance, the default value is 10
maxProcessors: the maximum number of connection threads, that is: the maximum number of concurrently processed requests, the default value is 75
acceptCount: the maximum number of connections allowed, should be greater than or equal to maxProcessors, the default value is 100.

The default setting is for 1000/s concurrency, and even larger ones will refuse connections. The following describes how to increase the number of concurrent connections to tomcat. The first is the
default setting of the connector in server.xml. Is http/1.1 modified to protocol="org.apache.coyote.http11.Http11NioProtocol" This is to be modified under tomcat6, if it is tomcat7 and above, the default is NIO mode

acceptCount="2000" Increase the maximum number of connections
maxProcessors= "300" For the number of requests processed by concurrent requests, increase
maxThreads="400" For the number of threads processed, increase
minProcessors="100" When the

corresponding tomcat starts, you need to increase the memory of the tomcat application to ensure that the tomcat can Normal operation,
JAVA_OPTS='-Xms256m -Xmx512m'
is set in apache-tomcat-6.0.35\bin\catalina.bat or apache-tomcat-6.0.35\bin\catalina.sh, the minimum initialization pair memory, the maximum memory used

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326316767&siteId=291194637