Increase the number of simultaneous connections in tomcat 7

It's amazing how to increase the number of concurrent connections in tomcat 7. I did some research and found in the apache documentation that setting values ​​for acceptCount, maxConnections and increasing maxThreads would do it, but when I try, I could only submit 500 requests from 1000. Below is mine fragment from server.xml -

      <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
       maxThreads="2000" acceptCount="1000" maxConnections="1000"
       scheme="https" secure="true"
       keystoreFile="certs/tomcat.keystore" keystorePass="xxxxxxxx"
       clientAuth="false" sslProtocol="TLS" server="Apache" />

Could you help me find the best and easiest way to get rid of this?

Thanks, Sirish.

+5
source share
1 answer

Creating a large number of threads 1 and accepting a large number of requests does not mean that your server will be able to process requests

N M /, 1 , M >= N M / N , M < N. , N , 1 , R . T, , T = Min(R, R * N / M) seconds. , N ( ) , T , .

, , , ... . .

, , , , , T - . ( , .. , .) , , , , , , , ( ) .


, 200... Tomcat 2. , . 1000 , , , .

1 - , 1000 , 1000 . RUNNABLE, , Tomcat (, ServerSocket.accept()), CPU .

2 - , , . , ( ) .

+13

All Articles