You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Cheshire <ya...@gmail.com> on 2020/03/13 13:54:08 UTC
ajp connector, nio vs nio2
Using 9.0.31 on Java 8, I have my AJP connector configured as
<Connector port="8019" protocol="AJP/1.3" URIEncoding="UTF-8"
secretRequired="false" />
According to the logs, this is defaulting to the NIO protocol. The
connector comparison chart [1] implies that NIO2 is used for 8.5x
onwards.
Shouldn't the AJP/1.3 protocol alias be using NIO2 by default (I don't
have APR/native installed)? What are the fundamental differences
between the two protocols?
Chris
PS Yes I have the AJP port only on localhost and firewalled off :)
[1] http://tomcat.apache.org/tomcat-9.0-doc/config/ajp.html#Connector_Comparison
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: ajp connector, nio vs nio2
Posted by Chris Cheshire <ya...@gmail.com>.
On Fri, Mar 13, 2020 at 10:09 AM Mark Thomas <ma...@apache.org> wrote:
>
> On 13/03/2020 13:54, Chris Cheshire wrote:
> > Using 9.0.31 on Java 8, I have my AJP connector configured as
> >
> > <Connector port="8019" protocol="AJP/1.3" URIEncoding="UTF-8"
> > secretRequired="false" />
> >
> > According to the logs, this is defaulting to the NIO protocol.
>
> Correct.
>
> > The
> > connector comparison chart [1] implies that NIO2 is used for 8.5x
> > onwards.
>
> No, the Tomcat version line in that chart indicates from which version
> onwards the connector is available.
>
> > Shouldn't the AJP/1.3 protocol alias be using NIO2 by default (I don't
> > have APR/native installed)?
>
> No. It should use NIO.
>
> > What are the fundamental differences
> > between the two protocols?
>
> They work in fundamentally different ways (NIO - Poller vs NIO2 -
> callback) but for AJP, the actual difference in terms of performance,
> scalability etc is minimal. Personally, I'd stick with NIO.
>
> Mark
>
>
Thanks :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: ajp connector, nio vs nio2
Posted by Mark Thomas <ma...@apache.org>.
On 13/03/2020 13:54, Chris Cheshire wrote:
> Using 9.0.31 on Java 8, I have my AJP connector configured as
>
> <Connector port="8019" protocol="AJP/1.3" URIEncoding="UTF-8"
> secretRequired="false" />
>
> According to the logs, this is defaulting to the NIO protocol.
Correct.
> The
> connector comparison chart [1] implies that NIO2 is used for 8.5x
> onwards.
No, the Tomcat version line in that chart indicates from which version
onwards the connector is available.
> Shouldn't the AJP/1.3 protocol alias be using NIO2 by default (I don't
> have APR/native installed)?
No. It should use NIO.
> What are the fundamental differences
> between the two protocols?
They work in fundamentally different ways (NIO - Poller vs NIO2 -
callback) but for AJP, the actual difference in terms of performance,
scalability etc is minimal. Personally, I'd stick with NIO.
Mark
>
> Chris
>
> PS Yes I have the AJP port only on localhost and firewalled off :)
>
> [1] http://tomcat.apache.org/tomcat-9.0-doc/config/ajp.html#Connector_Comparison
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org