Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 63135 invoked from network); 28 Mar 2010 14:57:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Mar 2010 14:57:17 -0000 Received: (qmail 54428 invoked by uid 500); 28 Mar 2010 14:57:17 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 54242 invoked by uid 500); 28 Mar 2010 14:57:16 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 54233 invoked by uid 99); 28 Mar 2010 14:57:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Mar 2010 14:57:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Mar 2010 14:57:14 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id B64BB17DB2 for ; Sun, 28 Mar 2010 14:56:52 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Sun, 28 Mar 2010 14:56:52 -0000 Message-ID: <20100328145652.8465.60514@eos.apache.org> Subject: =?utf-8?q?=5BTomcat_Wiki=5D_Update_of_=22FAQ/Connectors=22_by_KonstantinK?= =?utf-8?q?olinko?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for ch= ange notification. The "FAQ/Connectors" page has been changed by KonstantinKolinko. The comment on this change is: Added a link. http://wiki.apache.org/tomcat/FAQ/Connectors?action=3Ddiff&rev1=3D11&rev2= =3D12 -------------------------------------------------- 1. [[#Q6|How do I bind to a specific ip address?]] 1. [[#Q7|Where can I download a binary distribution of my connector?]] 1. [[#Q8|I'm having strange UTF-8 issues with my request parameters.]] + 1. [[#Q9|How do I configure apache tomcat connectors for a heavy load si= te?]] = =3D=3D Answers =3D=3D = <>'''What is JK (or AJP)?''' = AJP is a wire protocol. It an optimized version of the HTTP protocol to a= llow a standalone web server such as [[http://httpd.apache.org/|Apache]] to= talk to Tomcat. Historically, Apache has been much faster than Tomcat at s= erving static content. The idea is to let Apache serve the static content w= hen possible, but proxy the request to Tomcat for Tomcat related content. + = + = + <
> = <>'''Which connector: mod_jserv, JK, JK2, mod_webapp or mod_p= roxy?''' = @@ -30, +34 @@ * '''mod_jk is great and should be used for production'''. It is still u= nder active development and also works for the apache 2.X series for cases = where you do not want to use mod_proxy_ajp. * mod_proxy. A cheap way to proxy without the hassles of configuring JK.= This solution lacks sticky session load balancing. If you don't need some = of the features of jk - this is a very simple alternative. * mod_proxy_ajp. With apache 2.2, mod_proxy was rewritten to support loa= d balancing as well as a new transport called mod_proxy_ajp. This module is= distributed with the Apache http server, not the Tomcat server. + = + = + <
> = <>'''Why should I integrate Apache with Tomcat? (or not)''' = @@ -43, +50 @@ * Speed. Apache is faster at serving static content than Tomcat. But unl= ess you have a high traffic site, this point is useless. But in some scenar= ios, tomcat can be faster than Apache httpd. So benchmark YOUR site. '''Tom= cat can perform at httpd speeds when using the proper connector (APR with s= endFile enabled). Speed should not be considered a factor when choosing bet= ween Apache httpd and Tomcat''' * Socket handling/system stability. Apache has better socket handling wi= th respect to error conditions than Tomcat. The main reason is Tomcat must = perform all its socket handling via the JVM which needs to be cross platfor= m. The problem is socket optimization is a platform specific ordeal. Most o= f the time the java code is fine, but when you are also bombarded with drop= ped connections, invalid packets, invalid requests from invalid IP's, Apach= e does a better job at dropping these error conditions than JVM based progr= am. (YMMV) = + = + <
> + = <>'''At boot, is order of start up (Apache vs Tomcat) importa= nt?''' = No. This way - either apache or tomcat can be restarted at any time indep= endent of one another. + = + = + <
> = <>'''Is there any way to control the content of automatically= generated mod_jk.conf-auto? I need my own specific commands added to it.''' = There really is no need to. Just copy the automatically generated mod_jk.= conf-auto and edit it manually to your preference. None of production tomca= t installations really use mod_jk.conf-auto as it is. = = + = + <
> + = <>'''How do I bind to a specific ip address?''' = - Each Connector element allows an `address` property. See the [[http://tom= cat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector docs]] or the= see the [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Conn= ector docs]]. + Each Connector element allows an `address` property. See the [[http://tom= cat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector docs]] or the= [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Connector do= cs]]. + = + = + <
> = <>'''Where can I download a binary distribution of my connect= or?''' = You cannot: you need to download the source and compile it for your platf= orm. The source distributions are available from the [[http://tomcat.apache= .org/download-connectors.cgi|standard location]]. Note that JPackage.org ha= s RPM distributions for the connectors as well as tomcat itself: [[http://w= ww.jpackage.org/|JPackage.org]] = + = + <
> + = <>'''I'm having strange UTF-8 issues with my request paramete= rs.''' = - See [[FAQ/CharacterEncoding|Character Encoding]] + See [[../CharacterEncoding|Character Encoding]] + = + = + <
> + = + <>'''How do I configure apache tomcat connectors for a heavy = load site?''' + = + See [[../Performance_and_Monitoring|Performance and Monitoring]] = ---- [[CategoryFAQ|CategoryFAQ]] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org