I've attached two test runs NIO vs BIO.
The results are very similar, in a regular scenario, blocking IO should
be a little bit faster, cause it doesn't have to poll, and then hand off
to a separate thread before reading.
Benefit of the NIO is of course that the number of open sockets are no
longer limited by thread count.
Remy, can you run your tests again, are you still seeing a huge difference?
thanks
Filip
Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>>> That's unfortunate. So regular is better? What are they doing with
>>> Grizzly?
>> no, its me :)
>> I need to come up with a non cpu sucking wait algorithm for the wait.
>>
>> once that is fixed, the performance should be close to identical
>
> For some reason, the performance went down further for me with that
> patch (although I noticed the CPU is being used properly this time,
> while before Tomcat was not using all the CPU available).
>
> Rémy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
--
Filip Hanik
|