Re: ajp connector, nio vs nio2
On Fri, Mar 13, 2020 at 10:09 AM Mark Thomas wrote: > > On 13/03/2020 13:54, Chris Cheshire wrote: > > Using 9.0.31 on Java 8, I have my AJP connector configured as > > > > > 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ajp connector, nio vs nio2
On 13/03/2020 13:54, Chris Cheshire wrote: > Using 9.0.31 on Java 8, I have my AJP connector configured as > > 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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
ajp connector, nio vs nio2
Using 9.0.31 on Java 8, I have my AJP connector configured as 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
NIO vs NIO2
Hi, We are currently on the latest TC 8.5.37 but soon will be moving to latest 9. Currently we use NIO connectors. I am having hard time evaluating the need (if necessary) to switch to NIO2. Can someone point me to a good resource/link where the two connectors are compared and which situations is NIO or NIO2 better for. Thanks! George