tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject Re: NIO vs BIO speed
Date Mon, 26 Jun 2006 11:58:28 GMT
Filip Hanik - Dev Lists wrote:
> yes, I think they are looking pretty good. And I am fairly confident in 
> this new code, as most of it, is old tested APR code.

(Of course, there hasn't been any new changes, so it's not a surprise it 
not working any better for me; I did reboot in the meantime, though, and 
I am running JRE 1.5.0_06)

Performance with NIO is still bad for me (3 times slower than the other 
connectors) with /usr/sbin/ab.exe -n 5000 -c 20 -k 
http://127.0.0.1:8081/tomcat.gif. Throughput seems to vary wildly during 
the test. With /usr/sbin/ab.exe -n 5000 -c 20 
http://127.0.0.1:8081/tomcat.gif (no keepalive), performance is 
horrible, and kills the poller thread after a few hundred iterations 
with the exception I reported earlier:
Exception in thread "http-8081-Poller-0" java.lang.NullPointerException
         at sun.nio.ch.WindowsSelectorImpl$FdMap.remove(Unknown Source)
         at sun.nio.ch.WindowsSelectorImpl$FdMap.access$3000(Unknown Source)
         at sun.nio.ch.WindowsSelectorImpl.implDereg(Unknown Source)
         at sun.nio.ch.SelectorImpl.processDeregisterQueue(Unknown Source)
         at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
         at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
         at sun.nio.ch.SelectorImpl.select(Unknown Source)
         at 
org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1189)
         at java.lang.Thread.run(Unknown Source)

Rémy


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message