Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ThreadPool not spawning new threads

Hi all,

  Could you let me know why I'm facing the problem I mentioned above ?

Thanks,
Phani.


On Fri, Oct 25, 2013 at 4:49 PM, Phani Chaitanya Vempaty <pvempaty@xxxxxxxxxxxxx> wrote:
I'm using 8.1.8 version.


On Fri, Oct 25, 2013 at 4:22 PM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
What version of Jetty ?

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Fri, Oct 25, 2013 at 2:21 PM, Phani Chaitanya Vempaty <pvempaty@xxxxxxxxxxxxx> wrote:
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
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users




--
Phani Vempaty



--
Phani Vempaty

Back to the top