delay in the request

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

delay in the request

JuanPabloGárbora
Hi, 

I have an java app with jetty embedded.

<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.26</version>
</dependency>

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" />
</bean>
</property>
<property name="connectors">
<list>
<bean class="org.mortbay.jetty.nio.SelectChannelConnector">
<property name="name" value="xyz" />
<property name="port" value="${server.ws.port}" />
<property name="maxIdleTime" value="60000" />
<property name="acceptors" value="2" />
<property name="statsOn" value="false" />
</bean>
</list>
</property>
<property name="handlers">
<list>
<bean class="org.mortbay.jetty.webapp.WebAppContext">
<constructor-arg value="conf" />
<constructor-arg value="/" />
</bean>
</list>
</property>
<property name="stopAtShutdown" value="true" />
<property name="sendServerVersion" value="true" />
</bean>

best regards,