[jetty-user] delay in the request
JuanPabloGárbora <[email protected]> Wed, 5 Dec 2012 16:26:53 -0200
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CANjeYGv631qu9AFk+yTNVsRb28ay2kLicmMe5Rr8fKDCxRObQw@mail.gmail.com> |
--047d7b62226e9a7e1204d01f21e9
Content-Type: text/plain; charset=ISO-8859-1
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,
--047d7b62226e9a7e1204d01f21e9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,=A0<div><br></div><div>I have an java app with jetty embedded.</div><div=
><br></div><div><div><dependency></div><div><span class=3D"Apple-tab-=
span" style=3D"white-space:pre"> </span><groupId>org.mortbay.jetty<=
;/groupId></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><a=
rtifactId>jetty</artifactId></div><div><span class=3D"Apple-tab-sp=
an" style=3D"white-space:pre"> </span><version>6.1.26</version>=
</div>
<div></dependency></div></div><div><br></div><div>I have running 10 d=
ifferent instance of these app in one server, the server is a vm at rackspa=
ce with 4 CPU + 8GB of memory.=A0</div><div><br></div><div>My problem is so=
me http request are getting delay ... like arround 5 minutes. I don't k=
nown if jetty put these request in some queue and then release them or what=
!=A0</div>
<div><br></div><div>Maybe there are too many instances of my app or the jet=
ty server is not well tunned.=A0</div><div><br></div><div>any ideas ?</div>=
<div><br class=3D"Apple-interchange-newline">this is my configuration for t=
he server.=A0</div>
<div><br></div><div><div><span class=3D"Apple-tab-span" style=3D"white-spac=
e:pre"> </span><bean id=3D"server.Server" class=3D"org.mo=
rtbay.jetty.Server"</div><div><span class=3D"Apple-tab-span" style=3D"=
white-space:pre"> </span>destroy-method=3D"stop" init-method=3D&=
quot;start"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></di=
v><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&l=
t;property name=3D"threadPool"></div><div><span class=3D"Apple=
-tab-span" style=3D"white-space:pre"> </span><bean class=3D"org.m=
ortbay.thread.QueuedThreadPool"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&l=
t;property name=3D"maxThreads" value=3D"500" /></div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;property name=3D"minThreads" value=3D"10" /></div=
>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&l=
t;property name=3D"lowThreads" value=3D"20" /></div>=
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;/bean></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
/property></div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span></div><div><span class=3D"Apple-tab-span" style=3D"white-spac=
e:pre"> </span><property name=3D"connectors"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;list></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
"> </span><bean class=3D"org.mortbay.jetty.nio.SelectChannelConn=
ector"></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;property name=3D"name" value=3D"xyz" /></div><div=
><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><p=
roperty name=3D"port" value=3D"${server.ws.port}" />=
</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;property name=3D"maxIdleTime" value=3D"60000" /><=
/div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </s=
pan><property name=3D"acceptors" value=3D"2" /></=
div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;property name=3D"statsOn" value=3D"false" /></div=
><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;/bean></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;/list></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pr=
e"> </span></property></div><div><span class=3D"Apple-tab-span" styl=
e=3D"white-space:pre"> </span><property name=3D"handlers">=
</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
;list></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
"> </span><bean class=3D"org.mortbay.jetty.webapp.WebAppContext&=
quot;></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&=
lt;constructor-arg value=3D"conf" /></div><div><span class=3D"=
Apple-tab-span" style=3D"white-space:pre"> </span><constructor-arg v=
alue=3D"/" /></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&l=
t;/bean></div><div><span class=3D"Apple-tab-span" style=3D"white-space:p=
re"> </span></list></div><div><span class=3D"Apple-tab-span" style=
=3D"white-space:pre"> </span></property></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span><=
property name=3D"stopAtShutdown" value=3D"true" /></=
div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>=
<property name=3D"sendServerVersion" value=3D"true" =
/></div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span></=
bean></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"=
> </span></div></div><div><br></div><div>best regards,=A0</div>
--047d7b62226e9a7e1204d01f21e9--