You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Henri Gomez <he...@gmail.com> on 2006/12/08 12:02:37 UTC
Tomcat 6.0.4 and http thread releasing
Hi to all,
I'm doing some stress testing on Tomcat 6.0.4 on i5/OS with IBM Java 5
32 bits, no APR here.
I used ApacheBench to stress the Tomcat 6.0.4 sending about 1 million
requests on 100 concurrents connections (using keep alive).
I expected to see the number of HTTP thread to reduce after the test
but it's not the case, and that's what I see thru JConsole for all
HTTP threads
Name: http-18081-150
State: WAITING on org.apache.tomcat.util.net.JIoEndpoint$Worker@54ba54ba
Total blocked: 17 Total waited: 435
Stack trace:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:199)
org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:414)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:440)
java.lang.Thread.run(Thread.java:797)
Configuration is :
<Connector port="18081" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
What could be the problem ?
FYI, the acceptCount is set to 100 and I tested ab2 with 125
connections and as such ab2 has been rejected since I think the 125
connections arrived in the same time.
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 6.0.4 and http thread releasing
Posted by Henri Gomez <he...@gmail.com>.
Oups,
To keep only 75 spare http Threads
2006/12/8, Henri Gomez <he...@gmail.com>:
> > The user :D
>
> No seriously, what's the problem ?
>
> There is no active connections :
>
> 18081 000:47:36 Listen
> 18082 000:01:04 Listen
> 18083 002:04:57 Listen
> 18089 002:04:57 Listen
>
> Tomcat shouldn't close the Thread to keep only 25 http Threads ?
>
> But may be I'm a bozo ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 6.0.4 and http thread releasing
Posted by Henri Gomez <he...@gmail.com>.
> The user :D
No seriously, what's the problem ?
There is no active connections :
18081 000:47:36 Listen
18082 000:01:04 Listen
18083 002:04:57 Listen
18089 002:04:57 Listen
Tomcat shouldn't close the Thread to keep only 25 http Threads ?
But may be I'm a bozo ?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 6.0.4 and http thread releasing
Posted by Remy Maucherat <re...@apache.org>.
Henri Gomez wrote:
> What could be the problem ?
The user :D
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org