From users-return-243056-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Aug 6 14:50:22 2013 Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2AF910632 for ; Tue, 6 Aug 2013 14:50:22 +0000 (UTC) Received: (qmail 11562 invoked by uid 500); 6 Aug 2013 14:50:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11266 invoked by uid 500); 6 Aug 2013 14:50:18 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 11060 invoked by uid 99); 6 Aug 2013 14:50:18 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 14:50:18 +0000 Received: from localhost (HELO s2laptop.home) (127.0.0.1) (smtp-auth username markt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 14:50:17 +0000 Message-ID: <52010D2A.8070201@apache.org> Date: Tue, 06 Aug 2013 16:50:18 +0200 From: Mark Thomas User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Using NIO connector with Apache Httpd 2.4 References: <51FFB2E5.90000@apache.org> <52010384.9080504@christopherschultz.net> In-Reply-To: <52010384.9080504@christopherschultz.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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