tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Using NIO connector with Apache Httpd 2.4
Date Tue, 06 Aug 2013 14:50:18 GMT
On 06/08/2013 16:09, Christopher Schultz wrote:
> Mark,
> 
> On 8/5/13 10:12 AM, Mark Thomas wrote:
>> On 05/08/2013 15:50, Abhijith Prabhakar wrote:
>>> Hi All,
>>>
>>> We are currently using HTTP connector in tomcat 7.42 and planning
>>> to switch to AJP NIO connector.  When I was reading through the
>>> docs I found "WARNING: The NIO connector for AJP is
>>> experimental."
>>>
>>> This made me think that NIO connector might not be mature at
>>> this point.  Can somebody who had experience with NIO connector
>>> let me know if it is stable and any pitfalls I should be aware
>>> of?
>>>
>>> Stable enough to be used on enterprise apps which is expected to
>>> get thousands of requests in a hour?
>>>
>>> Any information would be helpful.
> 
>> That warning dates form when we added NIO support to AJP. That was
>> some time ago now and I don't think there is any need for that any
>> more. I'll remove it.
> 
> IMO, using NIO with APR doesn't really give you an advantage: one
> should have a (somewhat) fixed number of connections between httpd and
> Tomcat, so the httpd configuration is far more important than the
> connector you choose on the Tomcat side, isn't it?

The big advantage is that you can use persistent connections from httpd
without having to worry about making sure Tomcat has enough threads to
handle them all or disabling connection re-use. It really helps when you
have multiple httpd instances load-balancing to multiple tomcat instances.

Mark

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


Mime
View raw message