Pivotal Knowledge Base

Follow

What are the types of HTTP connectors available in Tomcat? (2010187_draft)

What are the types of HTTP connectors available in Tomcat? (2010187_draft)

Resolution

The number of active threads on each of our Tomcat servers has not come down. Both tomcat instances are setup for 600 threads and even after load has decreased, both still show 600 threads.

What are the types of HTTP connectors available in Tomcat?

HTTP connector summary

There are a number of different http connectors that can be used with Tomcat. They are:
- blocking IO
- non-blocking IO
- Native / Apache Portable Runtime (APR)

The blocking IO connector is the default http connector. With this connector each request is handled by a dedicated thread (obtained from a pool) until the request is complete at which point the thread is returned to the pool to be re-used by another request.

The difference between the connectors are described at the end of the following document:

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

The thread pool used by the blocking IO connector will increase in size but never decrease. Not reducing the thread pool size reduces complexity and gives a slight performance improvement at the cost of increased resource usage during periods of light load.

The blocking IO connector is recommended over the other connectors for:
- stability
- non-SSL
- performance if keep-alive is disabled (it is in your configuration)

If you were using SSL and/or keep-alive and not running on Solaris then the APR connector would be preferred. If you were using SSL and/or keep-alive on Solaris then NIO would be preferred.
©VMware 2013

Comments

Powered by Zendesk