Hello,
I am trying to make some performance
test on our application deployed on
Tomcat 7. I have played around with connector configurations but I am under the impression that some of them are ignored. The connector is HTTP BIO.
I am using JMeter for performance testing, and my scenario is to test with simultaneous users. After reading Tomcat documentation I started playing with
maxThreads,
maxConnections,
acceptCount and
connectionTimeout.
From my understanding, in case of BIO connector,
maxThreads value =
maxConnections value (if you don't set them both specifically), so essentially there is a 1 to 1 relationship between
thread and connection.
AcceptCount is the queue length of incoming requests (the requests are stacked up until the number of connections is lower than
maxConnections ).
ConnectionTimeout represents the number of milliseconds taken until the request is presented to the server.
Take for example the following configuration :
I have tested with 20 simultaneous users in JMeter (ramp-up period of 0 seconds so they can be simultaneous). I expect based on my understanding that all 20 users will get "Connection Refused error", but they all succeed.
I have be playing for 2 weeks now and I am confused... Is
connectionTimeout ignored in this case, or is my understanding poor ?
Thanks,
Ionut