0 Replies Latest reply on May 11, 2017 7:47 AM by ku ha

    Why didn't the thread queue request all execution success?

    ku ha Newbie

      Hi.

       

      The JBoss version is: jboss-as-7.1.1.Final.

      This is my standalone.xml configuration:

      <subsystem xmlns="urn:jboss:domain:threads:1.1">
           <thread-factory name="http-executor-factory" group-name="http-executor-group" thread-name-pattern="HTTP-%t" priority="9"/>
           <bounded-queue-thread-pool name="http-executor">
                <core-threads count="10"/>
                <queue-length count="100"/>
                <max-threads count="10"/>
                <keepalive-time time="10" unit="seconds"/>
                <thread-factory name="http-executor-factory"/>
           </bounded-queue-thread-pool>
      </subsystem>
      
      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
           <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" executor="http-executor"/>
           <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
           </virtual-server>
      </subsystem>
      

      As shown above, queue length is 100, When I send 120 requests, I expect to have 10 requests are executed immediately, 100 requests in the queue, 10 request was refused.

      But, in fact, the thread queue does not take effect, The queue only 33 request has been successfully executed, all the rest of the timeout. I finally send request only 43 of success.

       

      Why didn't the thread queue request all execution success?

       

      Can someone help me?

      Thank You.

       

      ku ha