Hi all,

  I'm using Solr which users jetty as its web server. What I observed is,
if there are threads that are waiting to finish processing the requests
sent to it, it is not spawning new threads if new requests come in. Below
is my jetty.xml (the thread pool & connector part).

    <!-- =========================================================== -->
    <!-- Server Thread Pool                                          -->
    <!-- =========================================================== -->
    <Set name="ThreadPool">
      <!-- Default queued blocking threadpool -->
      <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
        <Set name="minThreads">10</Set>
        <Set name="maxThreads">10000</Set>
        <Set name="detailedDump">false</Set>
      </New>
    </Set>

    <!-- =========================================================== -->
    <!-- Set connectors                                              -->
    <!-- =========================================================== -->

    <Call name="addConnector">
      <Arg>
          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
            <Set name="host"><SystemProperty name="jetty.host" /></Set>
            <Set name="port"><SystemProperty name="jetty.port"
default="8983"/></Set>
            <Set name="maxIdleTime">50000</Set>
            <Set name="Acceptors">2</Set>
            <Set name="statsOn">false</Set>
            <!-- <Set name="confidentialPort">8443</Set> -->
    <Set name="lowResourcesConnections">5000</Set>
    <Set name="lowResourcesMaxIdleTime">5000</Set>
          </New>
      </Arg>
    </Call>

I'm under the assumption that, because the configuration has "maxThreads"
parameter set to 10000, it would create new threads if new requests come in
and the existing threads are not finished processing yet.

Please let me know if any more information is needed, but help would be
appreciated.

Thanks.


-- 
Phani Vempaty
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to