Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 19342 invoked from network); 18 Aug 2005 16:03:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2005 16:03:52 -0000 Received: (qmail 62197 invoked by uid 500); 18 Aug 2005 16:03:35 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 62184 invoked by uid 500); 18 Aug 2005 16:03:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 62165 invoked by uid 99); 18 Aug 2005 16:03:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 09:03:35 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_50_60,HTML_FONT_FACE_CAPS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: error (asf.osuosl.org: local policy) Received: from [195.172.82.235] (HELO mail1.qas.com) (195.172.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 09:03:53 -0700 Received: from orion.qas.com (orion.qas.com) by mail1.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Thu, 18 Aug 2005 17:03:04 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5A40E.50FDC34F" Subject: load balancing 2 tomcats on 1 machine question Date: Thu, 18 Aug 2005 17:03:04 +0100 Message-ID: <5684A7E6FB10504393A2806C1F4C021003E0F0D9@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: load balancing 2 tomcats on 1 machine question Thread-Index: AcWkDlDNyeNRc+KlQBqvU/nMutoHlg== From: "Allistair Crossley" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5A40E.50FDC34F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I thought I had this sussed but it seems I haven't :( 2 tomcats, 1 machine,= JK to balance with stick sessions. The following configuration works in th= at JK routes requests to both the tomcats and so on.=20 =20 The issue is that if I look in the access logs for each tomcat I can see th= at 1 session gets spread across both tomcats rather than staying on one.=20 =20 This question is ever so slightly related to a post earlier today by a post= er who was seeing JK actually stay with the same tomcat, but still create a= new session. My issue is that the requests do not stay with the same tomca= t. =20 Is anyone able to suggest why this is? =20 Regards, Allistair. =20 workers.tomcat_home=3D"d:\jakarta-tomcat" workers.java_home=3D"c:\Program Files\Java\jdk1.5.0" ps=3D\ =20 worker.list=3Dloadbalancer =20 worker.tomcat1.port=3D8009 worker.tomcat1.host=3Dlocalhost worker.tomcat1.type=3Dajp13 worker.tomcat1.lbfactor=3D1 worker.tomcat1.cachesize=3D1 =20 worker.tomcat2.port=3D8109 worker.tomcat2.host=3Dlocalhost worker.tomcat2.type=3Dajp13 worker.tomcat2.lbfactor=3D1 worker.tomcat2.cachesize=3D1 =20 worker.loadbalancer.type=3Dlb worker.loadbalancer.sticky_session=3Dtrue worker.loadbalancer.method=3DR worker.loadbalancer.balanced_workers=3Dtomcat1,tomcat2 =20 worker.inprocess.type=3Djni worker.inprocess.class_path=3D$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=3Dstart worker.inprocess.jvm_lib=3D$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic= $(ps)jvm.dll worker.inprocess.stdout=3D$(workers.tomcat_home)$(ps)logs$(ps)inprocess.std= out worker.inprocess.stderr=3D$(workers.tomcat_home)$(ps)logs$(ps)inprocess.std= err =20 ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- ------_=_NextPart_001_01C5A40E.50FDC34F--