Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 68679 invoked from network); 22 Jan 2010 13:21:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2010 13:21:05 -0000 Received: (qmail 72392 invoked by uid 500); 22 Jan 2010 13:21:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 72320 invoked by uid 500); 22 Jan 2010 13:21:01 -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 72309 invoked by uid 99); 22 Jan 2010 13:21:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 13:21:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 13:20:51 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 408B22260C3 for ; Fri, 22 Jan 2010 14:20:30 +0100 (CET) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96KtZNSZKRRm for ; Fri, 22 Jan 2010 14:20:30 +0100 (CET) Received: from [192.168.245.129] (p549EA916.dip0.t-ipconnect.de [84.158.169.22]) by tor.combios.es (Postfix) with ESMTPA id C58892260C0 for ; Fri, 22 Jan 2010 14:20:29 +0100 (CET) Message-ID: <4B59A612.1000600@ice-sa.com> Date: Fri, 22 Jan 2010 14:20:18 +0100 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: problem with tomcat 5.5 and apache AJP References: <4B5979ED.9050205@oma.be> In-Reply-To: <4B5979ED.9050205@oma.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org David Delbecq wrote: > > port="8019" > protocol="AJP/1.3" request.secret="MyPass" > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" > redirectPort="443"> > > > > and apache is configured as follow: > worker.list=lbJboss,lbOld,lbTomcat,status > > > # Define jbossBoromir > # modify the host as your host IP or DNS name. > worker.jbossBoromir.port=8009 > worker.jbossBoromir.host=localhost > worker.jbossBoromir.type=ajp13 > worker.jbossBoromir.lbfactor=1 > worker.jbossBoromir.prepost_timeout=10000 #Not required if using ping_mode=A > worker.jbossBoromir.connect_timeout=10000 #Not required if using ping_mode=A > worker.jbossBoromir.secret="MyPass" > #worker.tomcatBoromir.ping_mode=A #As of mod_jk 1.2.27 > # worker.tomcatBoromir.connection_pool_size=10 (1) > > > > worker.tomcatBoromir.port=8019 > worker.tomcatBoromir.host=localhost > worker.tomcatBoromir.type=ajp13 > worker.tomcatBoromir.lbfactor=1 > worker.tomcatBoromir.prepost_timeout=10000 #Not required if using > ping_mode=A > worker.tomcatBoromir.connect_timeout=10000 #Not required if using > ping_mode=A > worker.tomcatBoromir.secret="MyPass" > #worker.tomcatBoromir.ping_mode=A #As of mod_jk 1.2.27 > #worker.tomcatBoromir.connection_pool_size=10 (1) > > > worker.tomcatIlluin.port=8019 > worker.tomcatIlluin.host=illuin > worker.tomcatIlluin.type=ajp13 > worker.tomcatIlluin.lbfactor=1 > worker.tomcatIlluin.prepost_timeout=10000 #Not required if using ping_mode=A > worker.tomcatIlluin.connect_timeout=10000 #Not required if using ping_mode=A > worker.tomcatIlluin.secret="MyPass" > > # Load-balancing behaviour > worker.lbJboss.type=lb > worker.lbJboss.balance_workers=jbossBoromir > > > worker.lbTomcat.type=lb > worker.lbTomcat.balance_workers=tomcatBoromir > > > worker.lbOld.type=lb > worker.lbOld.balance_workers=tomcatIlluin > > # Status worker for managing load balancer > worker.status.type=status > Hi. (In the hope that solving this will help improve the weather in Belgium) About your main issue : in my own experience, whenever we get the kind of error messages which you indicate, they are right. It really means that the back-end Tomcat is for some reason not responding to Apache/mod_jk within a certain limit of time. That can be because it is really down, or because it is very busy doing something else (all threads are already processing requests, or the requested webapp is busy starting up, or something like that). Or, you may be having network connectivity problems (but that would normally not be the case if both Apache and Tomcat are on the same host). But maybe the confusion below about load balancing is the root cause of the problems. I don't know if I am understanding your quoted configuration correctly, but if I do, it puzzles me a bit. You seem to have 3 separate servlet engines : on "localhost", you have a jBoss and a Tomcat and on "illuin", you have a Tomcat. The jBoss on localhost has an AJP Connector listening on port 8009. The corresponding "worker" is named "jbossBoromir". The Tomcat on localhost has an AJP Connector listening on port 8019. The corresponding "worker" is named "tomcatBoromir". The Tomcat on illuin has an AJP Connector listening on port 8019. The corresponding "worker" is named "tomcatIlluin". Then for each one, you have an additional "load balancer" worker. So each load balancer worker only "balances" a single Tomcat/jBoss. This seems a bit counter-intuitive. Why not have worker.list=jbossBoromir,tomcatBoromir,tomcatIlluin,status directly, and take the load balancer workers out of the equation, since they each balance only 1 back-end ? Or, if your idea is really to balance all requests between all 3 back-ends, then use one single load-balancer worker, but have it balance all 3 "real" workers. Like : worker.list=lb,status worker.lb.balance_workers=jbossBoromir,tomcatBoromir,tomcatIlluin The point is, in my understanding, a load balancer worker only makes sense if it balances at least 2 real workers (tomcat or jboss). Otherwise it seems pretty pointless. Or is it only in order to be able to use the status worker ? What do your "JkMount" lines at the Apache level look like ? That may allow us to figure out what you are trying to achieve. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org