Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 6.1.5
-
Fix Version/s: None
-
Component/s: Continuations
-
Labels:None
-
Environment:Linux, jetty6.1.5 with jre1.6.0_10
-
Number of attachments :
Description
We have a jetty server with the following connectors/thread pool configuration
<New class="org.mortbay.thread.BoundedThreadPool">
<Set name="minThreads">50</Set>
<Set name="lowThreads">60</Set>
<Set name="maxThreads">400</Set>
</New>
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="port"><SystemProperty name="jetty.port" default="8111"/></Set>
<Set name="maxIdleTime">60000</Set>
<Set name="Acceptors">70</Set>
<Set name="confidentialPort">8443</Set>
</New>
</Arg>
</Call>
And we hit to the port 8111 using http client (apache) having a 10 seconds time out.
Now for most of the cases this works fine and i get a response to the http client within 10 seconds but sometimes the requests get queued on the server and the response is sent after the time out. The sever again sends out the request to some other URL using http client and that takes some where around <1 sec.
Baiscally i am not sure how to set the thread priority so that the requests are obeyed in order. Also does SocketConnector (without the NIO) will help in my case
Hi, checking first, but does this happen on the latest version of Jetty as well?