Tomcat connections

This section covers the most relevant information for performance and size tuning the Tomcat 5.5.x Servlet/JSP Container. Most of this information is available on the Apache Software Foundation Web site.

At server startup time, a Connector object creates a number of request processing threads (based on the value configured for the minSpareThreads attribute). Each incoming request requires a thread for the duration of that request. If more simultaneous requests are received than can be handled by the currently available request processing threads, additional threads are created, up to the configured maximum (the value of the maxThreads attribute). If still more simultaneous requests are received, they are stacked up inside the server socket created by the Connector, up to the configured maximum (the value of the acceptCount attribute. Any further simultaneous requests receive “connection refused” errors, until resources are available to process them.

This object and its attributes are defined in the server.xml file, located in SYBASE\tomcat\conf. The following configurable properties are available for the HTTP Connector. For simplicity only sizing relevant properties are included.