delay in the request

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

delay in the request


I have an java app with jetty embedded.


I have running 10 different instance of these app in one server, the server is a vm at rackspace with 4 CPU + 8GB of memory. 

My problem is some http request are getting delay ... like arround 5 minutes. I don't known if jetty put these request in some queue and then release them or what ! 

Maybe there are too many instances of my app or the jetty server is not well tunned. 

any ideas ?

this is my configuration for the server. 

<bean id="server.Server" class="org.mortbay.jetty.Server"
destroy-method="stop" init-method="start">
<property name="threadPool">
<bean class="org.mortbay.thread.QueuedThreadPool">
<property name="maxThreads" value="500" />
<property name="minThreads" value="10" />
<property name="lowThreads" value="20" />
<property name="connectors">
<bean class="org.mortbay.jetty.nio.SelectChannelConnector">
<property name="name" value="xyz" />
<property name="port" value="${}" />
<property name="maxIdleTime" value="60000" />
<property name="acceptors" value="2" />
<property name="statsOn" value="false" />
<property name="handlers">
<bean class="org.mortbay.jetty.webapp.WebAppContext">
<constructor-arg value="conf" />
<constructor-arg value="/" />
<property name="stopAtShutdown" value="true" />
<property name="sendServerVersion" value="true" />

best regards,