tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <>
Subject Re: svn commit: r465417 - in /tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11:
Date Fri, 20 Oct 2006 00:39:33 GMT
Filip Hanik - Dev Lists wrote:
> gentlemen, not sure if you had a chance to look this over, but it is 
> pretty interesting,
> after some very basic tests, I get the NIO connector to perform better 
> than the blocking io connector
> the peak data throughput are
> NIO - 36,000KB/s
> JIO - 35,000KB/s
> APR - 24,000KB/s
> basic connector config, with maxThreads=150,
> ./ab -n 500000 -c 100 -k -C 
> "test=89012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"

> http://localhost:8080/tomcat.gif
> of course, not an all encapsulating test, but the NIO connector used to 
> always lag behind the JIO connector, in these simple tests. So lets 
> ignore the numbers, they aren't important.

I am very skeptical about that trick.

As usual, in case someone is still interested, I get opposite results on 
my toy O$, with the result being APR > JIO > NIO although all three are 
fast enough (unfortunately, I did not try the before/after to see if the 
trick did something for me). I also do get a dose of paranormal activity 
using the NIO connector.

     <Connector port="8080" 
                maxThreads="150" connectionTimeout="20000"
                redirectPort="8443" />
     <Connector port="8081" 
                maxThreads="150" connectionTimeout="20000"
                redirectPort="8443" />
     <Connector port="8082" 
                maxThreads="150" connectionTimeout="20000"
                redirectPort="8443" />

BTW, I don't know if you know about it, but the APR and JIO AJP that are 
in o.a.coyote.ajp should both be faster than the classic o.a.jk. Of 
course, it's not that hard, since the connector is much simpler (and 
just does basic AJP).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message