This is the configuration I'm using
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" acceptCount="1000" maxConnections="500" />
I have read the doc but can't able to understand, please explain with an example if possible, and what is relationship between them.
By default, Tomcat sets maxThreads to 200, which represents the maximum number of threads allowed to run at any given time. You can also specify values for the following parameters: minSpareThreads : the minimum number of threads that should be running at all times.
There are two basic Connector types available in Tomcat - HTTP and AJP. Here's some information about how they differ from one another, and situations in which you might use them.
The HTTP Connector element represents a Connector component that supports the HTTP/1.1 protocol. It enables Catalina to function as a stand-alone web server, in addition to its ability to execute servlets and JSP pages.
maxPostSize. The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than zero. If not specified, this attribute is set to 2097152 (2 megabytes).
acceptCount
-- The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. The default value is 100.
redirectPort
-- if this Connector is supporting non-SSL requests, and a request is received for which a matching <security-constraint>
requires SSL transport, Catalina will automatically redirect the request to the port number specified here.
MaxConnections
-- The maximum number of connections that the server will accept and process at any given time. When this number has been reached, the server will accept, but not process, one further connection.
connectionTimeout
-- The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented
acceptCount
is like the line waiting to get into a popular nightclub that is full. (maxConnections
) when some people leave maxConnections
goes down allowing more people to connect from the acceptCount
waiting list. The connection timeout is simply how long it will wait for the request. So you can either make the line longer (acceptCount
) or make the nightclub larger (maxConnections)
Redirect port is how/where it handles a redirect due to a security restraint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With