From users-return-243059-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Aug 6 15:41:16 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 2CCC6107E5 for ; Tue, 6 Aug 2013 15:41:16 +0000 (UTC) Received: (qmail 28620 invoked by uid 500); 6 Aug 2013 15:41:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 28438 invoked by uid 500); 6 Aug 2013 15:41:12 -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 28429 invoked by uid 99); 6 Aug 2013 15:41:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 15:41:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [76.96.62.24] (HELO qmta02.westchester.pa.mail.comcast.net) (76.96.62.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 15:41:06 +0000 Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta02.westchester.pa.mail.comcast.net with comcast id 9Swg1m00417dt5G51TgR7x; Tue, 06 Aug 2013 15:40:25 +0000 Received: from Christophers-MacBook-Pro.local ([71.232.232.167]) by omta13.westchester.pa.mail.comcast.net with comcast id 9TgQ1m00i3dMwMT3ZTgQRo; Tue, 06 Aug 2013 15:40:25 +0000 Message-ID: <520118EA.4030804@christopherschultz.net> Date: Tue, 06 Aug 2013 11:40:26 -0400 From: Christopher Schultz 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> <52010D2A.8070201@apache.org> In-Reply-To: <52010D2A.8070201@apache.org> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1375803625; bh=hxIOhYNhwi+7hU+YSQ5H2+6DpMEwe9GNZsPL/xS3jbQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=Vb/K2t1us2FyzEa5fLda8wq3fbeP5omsN7+hWghKyVU+XzDmfYG2ozPgX7f3Y4VNw 7jviLfdgazXmzYBDVFcsg5ET8sQ0kuMCI0y0SsfJcy2J8WkYvA3tO0OLSjutJHSWza 2zr8kOXGiZ7uZ122wIus6+b75LzGJl/xn0OhsbHLFulAFVrftxEqUIg1g4JEItnVs7 zDzf4Y+CBznsHHSDWJonmDbBixFfZsbv55t57V8xlLsYKM6LtFGzMhenA73STy1J44 4A1OFnfmko2fqP3LcScq4tWjcxBUrfLjCYE3W06oarqG6sqpykuLqzHB3wrse6Imc0 BOSXejm22u6HA== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mark, On 8/6/13 10:50 AM, Mark Thomas wrote: > 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. Aah, that does make sense. Still, having (say) 200 threads on the Tomcat side isn't a big deal with a single-fronting-server. The real problem is on the httpd side where if you have 10 back-end servers you'd need 2000 threads if everything was blocking. Things get more interesting when you have -- as you say -- an N * M setup where the number of blocking-connector threads on the Tomcat side starts to rise geometrically. Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSARjoAAoJEBzwKT+lPKRY+bYP/23oapqbDR9vvVVko/xxeuj2 kk42v7QTSZEq5cQHFVz3WjvQR0KmjtBVob+jugW2DjWDFL64uWie+3QRWtQ3SGEI TqLRsh4zucu4L9x59UDb2RLFAHDoE9IfJGyKcfr9CBaeEI4J8HR3n+xw/5ypwyE+ Ervuzwov2Z2uF6gPt5M214xhswmCH/zjXR80piM+DpNuT1t8qQDGTZ4ZiR8c331f 1kMxnqX+vVIGOccQONvIYEuYLPQ/ztgTLLgyDQDpuISjQQnlIqOa4KpvRLCSBeyk IbehHhJ4rZ9e6Gh8dQyo3q0ih5K5CX77Zyv4Bgq9+ZCGd2oraYkqrW/5Rzol9Alh pnXnA+stes2qqG5uJJ+zeCvHNL1EQGmIM6ZKrat8Adk8Ua50So6yyCOd5jQrk+4y WWVa5T6P/vaF9JhkAhtpCqWKALViv/+EmwqoMqMLYc+jV0p0GfJ6Dn4te48//Jin XImo5kxJSgEnM+2Yi7H+PZPvA6ZSkFOzThnbJubZkOXMGXVnvVFIRH7ekfacErNi NhY2uPoAVB3VTq5KjQE/h5l+pW++ugkznWOrrBLKU48MjAIrSefVwRbi0aTuNgjM 6H8qZxo1ec3qFrw8GGg309FqlOWSk7SDNCbg/JW0DGlqyXFxJq71X6vqvmGRb7mS qKxRy77ZfAxVvJZkXHD/ =y1hm -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org