Last Updated: February 25, 2016
·
1.855K
· rodo

Jetty9 thread pool configuration

<?xml version="1.0"?>
<Configure id="Server" class="org.eclipse.jetty.server.Server">

    <!-- =========================================================== -->
    <!-- Jetty 9 Server Thread Pool                                  -->
    <!-- =========================================================== -->
    <Arg name="threadpool">
      <New id="threadpool" class="org.eclipse.jetty.util.thread.QueuedThreadPool">
        <Set name="minThreads">
          <Property name="threads.min" default="10"/>
        </Set>
        <Set name="maxThreads">
          <Property name="threads.max" default="20"/>
        </Set>
        <Set name="detailedDump">false</Set>
      </New>
    </Arg>

</Configure>