

Not only does this Tomcat performance best practice allow for better use of resources on individual connections, but it also gives administrators more control over how many threads are in the pool at any given time. This allows better sharing of threads across them. An executor is a thread pool that can be shared by all of the connectors of each request type. When using multiple connectors, you can configure an executor. Tomcat performance best bractices for Executors Get in touch to learn more about how we can help you make the most of your server resources to achieve outstanding performance objectives. We can even help implement the changes you need. We can help evaluate your system and make recommendations on optimizing this setting. Any request that is sent to a non-SSL connector should be sent to the redirectPort specified in this configuration field.Ĭonfiguring threads requires careful evaluation of your system to ensure you select the optimum number of threads. The maxThreads attribute of a connector defines the maximum number of simultaneous threads that can be executed for that connector.Ĭonnectors can accept both SSL and non-SSL requests. When Tomcat receives requests, it assigns them to threads. This Tomcat performance best practice minimizes the chances that different request types will interfere with each other. That will allow one type to be processed on one port and another type on a different port. If different workloads are coming into the Tomcat server that you want to be processed separately, consider having multiple connectors.

There is one connector per port on the server, and each listens for a specific type of request. Tomcat performance best practices for ConnectorsĬonnectors are needed to enable Tomcat servers to receive requests from clients. You’ll get optimal performance for your Java applications by following these Tomcat performance best practices. Tuning Tomcat is just one of many performance engineering strategies. Most enterprise production websites, however, will need performance capabilities beyond the basic configurations. Given these numbers, it is easy to see why tuning and maintaining your web server for optimal performance is key. Depending on your revenue, that could cost millions of dollars per year. Out of the box, Tomcat provides a Java runtime for running basic servlet container and application server functionality that is suitable for many webapps.Īccording to Kissmetrics, a one-second delay in page response can result in a 7% reduction in conversions. Apache Tomcat is an open-source Catalina servlet container and web server.
