Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 87155 invoked from network); 30 Nov 2007 09:26:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 09:26:00 -0000 Received: (qmail 5806 invoked by uid 500); 30 Nov 2007 09:25:35 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 5783 invoked by uid 500); 30 Nov 2007 09:25:35 -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 5771 invoked by uid 99); 30 Nov 2007 09:25:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 01:25:35 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [78.32.151.247] (HELO stjwks02.uk.ratedpeople) (78.32.151.247) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 09:25:13 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by stjwks02.uk.ratedpeople (8.14.1/8.14.1) with ESMTP id lAU9PBXJ031475 for ; Fri, 30 Nov 2007 09:25:11 GMT Subject: Re: Tomcat 6.0 with Apache 2.2 front-end From: David Cassidy To: Tomcat Users List In-Reply-To: <158274.26342.qm@web39811.mail.mud.yahoo.com> References: <158274.26342.qm@web39811.mail.mud.yahoo.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 30 Nov 2007 09:25:11 +0000 Message-Id: <1196414711.3927.99.camel@stjwks02.uk.ratedpeople> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Tony, mod_jk - which uses the ajp13 protocol is not the same as the http11aprprotocol which uses http/1.1 as its protocol. Filip - is there a comparison between apache talking to http to tomcat vs apache with ajp to tomcat ? Ta D On Thu, 2007-11-29 at 13:37 -0800, Tony Anecito wrote: > Thanks Filip I am interested in that information also. > > I will try to get it configured and running and give > feedback on performance since I already use mod_jk or > the Http11AprProtocol as I think you call it. > > Regards, > -Tony > > --- Filip Hanik - Dev Lists > wrote: > > > the speed of the connectors are (in order) > > > > Http11Protocol - Java BIO connector, no poller, > > blocking read/write > > Http11AprProtocol - APR connector, poller, blocking > > read/write > > Http11NioProtocol - Java NIO connector, poller, > > simulated blocking > > read/write > > > > the reason the NIO is slower, is cause it has to > > simulate "blocking" > > reads and writes through a non blocking API.The > > reason the BIO is the > > fastest, is cause there is no context switching > > during block simulation, > > or adding/removing the connection from a poller. > > > > When it comes to SSL, the APR connector is much > > faster than both the > > Java connectors. > > > > Filip > > > > David Cassidy wrote: > > > Has anyone got a comparison of the NIO one vs > > standard java connectors ? > > > both with and without the native libs ? > > > > > > Ta > > > > > > > > > On Thu, 2007-11-29 at 08:38 -0600, Brian Millett > > wrote: > > > > > >> Filip Hanik - Dev Lists escribĂ­o: > > >> > > >>> using mod_proxy_http, you want to enable > > >>> > > >>> ProxyPreserveHost On > > >>> > > >>> > > >>> Filip > > >>> loknor wrote: > > >>> > > >>>> Filip Hanik - Dev Lists wrote: > > >>>> > > >>>> > > >>>>> three options > > >>>>> > > >>>>> mod_proxy_http > > >>>>> mod_jk > > >>>>> mod_proxy_ajp > > >>>>> > > >>>>> Filip > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>> Yep just found the other option, and a site > > that got me up to speed very > > >>>> quickly. I can now communicate between Apache > > and Tomcat. > > >>>> > > > http://blog.taragana.com/index.php/archive/5-steps-to-integrate-tomcat-55-with-apache-20 > > >>>> > > >>>> > > >>>> Thanks, > > >>>> > > >>>> Brent > > >>>> > > >>>> > > >> I'd also recommend that you compile the apr > > native libs for tomcat > > >> (apache-tomcat-6.0.14/bin/tomcat-native.tar.gz) > > and enable it when you start > > >> tomcat by adding > > "-Djava.library.path=/usr/local/apr/lib" (I > > installed the lib > > >> in /usr/local/apr/lib). > > >> > > >> What gives you is the apr interface for handling > > the http connects. > > >> > > >> from the catalina.out: > > >> > > >> Nov 26, 2007 9:31:10 AM > > org.apache.coyote.http11.Http11AprProtocol init > > >> INFO: Initializing Coyote HTTP/1.1 on http-8080 > > >> > > >> This handler scales and is quicker than the java > > handler. JBoss calls it > > >> JBossWeb. See > > http://labs.jboss.com/jbossweb/index.html for a nice > > graph of the > > >> performance differences between the native apr & > > java handlers. > > >> > > >> > > >> > > > > > > > > > > > > --------------------------------------------------------------------- > > > To start a new topic, e-mail: > > users@tomcat.apache.org > > > To unsubscribe, e-mail: > > users-unsubscribe@tomcat.apache.org > > > For additional commands, e-mail: > > users-help@tomcat.apache.org > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: > > users@tomcat.apache.org > > To unsubscribe, e-mail: > > users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: > > users-help@tomcat.apache.org > > > > > > > > ____________________________________________________________________________________ > Be a better sports nut! Let your teams follow you > with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org