tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Afkham Azeez <afk...@gmail.com>
Subject Re: Advantage of using HTTP NIO Connector
Date Thu, 17 Feb 2011 15:18:16 GMT
Thanks Mark.

On Thu, Feb 17, 2011 at 8:41 PM, Mark Thomas <markt@apache.org> wrote:

> On 17/02/2011 14:56, Afkham Azeez wrote:
> > Hi folks,
> > What is the advantage of using this connector as opposed to the default
> one?
> > In which scenarios would we tend to use the default connector, and in
> which
> > scenarios will it be more appropriate to use the NIO connector?
>
> NIO and APR use one thread per currently processing request.
> BIO uses one thread per connection. Since usually connections >>
> currently processing request, NIO and APR scale better.
>
> BIO has slightly better raw performance than NIO (excluding sendfile).
>
> APR and NIO support sendfile.
>
> APR has much better SSL performance.
>
> NIO and APR support Comet, BIO does not.
>
> As with anything performance related, YMMV. The only way to be sure is
> to test it.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message