Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 82194 invoked from network); 27 Jan 2011 05:03:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 05:03:21 -0000 Received: (qmail 76334 invoked by uid 500); 27 Jan 2011 05:03:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75890 invoked by uid 500); 27 Jan 2011 05:03:13 -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 75861 invoked by uid 99); 27 Jan 2011 05:03:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 05:03:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of muhammad.shoaib@live.com designates 65.55.111.92 as permitted sender) Received: from [65.55.111.92] (HELO blu0-omc2-s17.blu0.hotmail.com) (65.55.111.92) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 05:03:06 +0000 Received: from BLU0-SMTP171 ([65.55.111.73]) by blu0-omc2-s17.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 26 Jan 2011 21:02:45 -0800 X-Originating-IP: [209.85.210.173] X-Originating-Email: [muhammad.shoaib@live.com] Message-ID: Received: from mail-iy0-f173.google.com ([209.85.210.173]) by BLU0-SMTP171.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 26 Jan 2011 21:02:44 -0800 Received: by iye19 with SMTP id 19so1204702iye.18 for ; Wed, 26 Jan 2011 21:02:42 -0800 (PST) Received: by 10.231.39.199 with SMTP id h7mr362773ibe.157.1296104562842; Wed, 26 Jan 2011 21:02:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.16.205 with HTTP; Wed, 26 Jan 2011 21:02:27 -0800 (PST) In-Reply-To: References: <20110126111858.GD1936@wladimir> From: "Shoaib M. Chaudhary" Date: Thu, 27 Jan 2011 10:02:27 +0500 Subject: Re: mod_jk load balancing problem To: Tomcat Users List Content-Type: multipart/alternative; boundary="002215048f670f5bf9049accdcbe" X-OriginalArrivalTime: 27 Jan 2011 05:02:44.0036 (UTC) FILETIME=[6E8E3040:01CBBDDF] --002215048f670f5bf9049accdcbe Content-Type: text/plain; charset="UTF-8" Hello, The problem I detected is that client has to send three requests for home page as it contains frames. How can I force mod_jk to send all requests to one server. I come to this result while I shutdown one server called tomcat3 and restart a tomcat on that machine (tomcat3) with no application. Frames showed error 404 that should be there as there were no page on that machine (tomcat3). I concluded that all request is not been treated by one server. Can someone help me out. Regards *Muhammad Shoaib* On Thu, Jan 27, 2011 at 09:08, Shoaib M. Chaudhary wrote: > The problem is following, > > When I use mod_jk with the following code for one worker it works fine but > when I try to connect with two tomcat servers that are not on the same > machine on which I have apache. Interestingly when I use one worker as > localhost it works fine again. > > There is no error but the page loads again and again. following is my > worker.properties file. > > worker.list=loadbalancer > > worker.tomcat2.port=8009 > worker.tomcat2.host=172.16.10.21 > worker.tomcat2.type=ajp13 > worker.tomcat2.lbfactor=1 > worker.tomcat1.socket_timeout=1000 > > > worker.tomcat3.port=8009 > worker.tomcat3.host=172.16.10.22 > worker.tomcat3.type=ajp13 > worker.tomcat3.lbfactor=1 > worker.tomcat1.socket_timeout=1000 > > > worker.loadbalancer.type=lb > worker.loadbalancer.balanced_workers=tomcat2, tomcat3 > > Intrestingly when I use worker.loadbalancer.balanced_workers=tomcat2 it > works fine even if I replace tomcat2 with tomcat 3 as well. The page keep > refreshing it self for some time and suddenly it finished refreshing and I > can see the original page as well. > > Regards > *Muhammad Shoaib* > > Software Engineer > National University of Computer and Emerging Sciences > A. K. Brohi Road (Near Police Line) H11/4 Islamabad > > Semantic Web Consultant / Knowledge Engineer > Allainet Cooperation Private Limited > I8/3 Islamabad Pakistan > > T +92-(51)-111-128-128 Ext 344 | M +92-334-5577712 > muhammad.shoaib@live.com > > > > > On Wed, Jan 26, 2011 at 03:18, Michael Ludwig wrote: > > > Shoaib M. Chaudhary schrieb am 26.01.2011 um 15:48 (+0500): > > > > > I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with > > > one worker it works fine > > > > Okay. > > > > > but when I use loadbalancer with two different tomcats the server > > > doesn't response > > > > No response at all? Or some error status? > > > > > but always try to refresh the page. > > > > It's not clear to me what you're doing nor what's happening. > > > > What about providing a more precise description of your setup (like > > config) and observations? > > > > -- > > Michael Ludwig > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > --002215048f670f5bf9049accdcbe--