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" protocol="org.apache.coyote.http11.Http11Protocol"
               maxThreads="150" connectionTimeout="20000"
               redirectPort="8443" />
<Connector port="8081" protocol="org.apache.coyote.http11.Http11AprProtocol"
               maxThreads="150" connectionTimeout="20000"
               redirectPort="8443" />
<Connector port="8082" protocol="org.apache.coyote.http11.Http11NioProtocol"
               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).

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to