<!-- Illustrative Tomcat 9.0.122 Service fragment, not an OBRH deployment.
     Merge the Executor and Connector into the existing Service in server.xml.
     Keep the existing Engine/Host, TLS, proxy and application configuration.
     Restart/activation and load validation are outside this documentation example.
     A standard platform-thread executor is shared by every Connector naming it.
     These values are sizing inputs, not measured safe limits. -->
<Service name="Catalina">
  <!-- Declare before Connectors. This object owns worker and task-queue limits. -->
  <Executor name="requestWorkers"
            className="org.apache.catalina.core.StandardThreadExecutor"
            namePrefix="request-worker-"
            maxThreads="80"
            minSpareThreads="20"
            maxQueueSize="40" />

  <!-- This object owns socket capacity and the requested OS listen backlog.
       Do not add maxThreads/maxQueueSize here: the referenced Executor owns them.
       connectionTimeout is not a business-operation deadline. -->
  <Connector port="8080"
             protocol="org.apache.coyote.http11.Http11NioProtocol"
             executor="requestWorkers"
             maxConnections="1000"
             acceptCount="100"
             connectionTimeout="5000"
             keepAliveTimeout="5000" />

  <!-- Existing Engine/Host configuration belongs here; intentionally omitted. -->
</Service>
