Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 86132 invoked from network); 15 Jul 2003 18:36:10 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 Jul 2003 18:36:10 -0000 Received: (qmail 12852 invoked by uid 97); 15 Jul 2003 18:38:43 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 12845 invoked from network); 15 Jul 2003 18:38:42 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 Jul 2003 18:38:42 -0000 Received: (qmail 81708 invoked by uid 500); 15 Jul 2003 18:35:19 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 81637 invoked from network); 15 Jul 2003 18:35:17 -0000 Received: from trcmail.trcinc.com (HELO TRCXFER.dmz.trcinc.com) (4.36.124.141) by daedalus.apache.org with SMTP; 15 Jul 2003 18:35:17 -0000 Received: from trcexcsrv01.trcinc.com (Not Verified[192.168.253.106]) by TRCXFER.dmz.trcinc.com with NetIQ MailMarshal (v5.5.3.11) id ; Tue, 15 Jul 2003 14:35:20 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Tomcat load not distributed equally by Apache Date: Tue, 15 Jul 2003 14:35:20 -0400 Message-ID: <3BAC15E02315BC4783152AC5E9621BB50191F7EF@trcexcsrv01.trcinc.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Tomcat load not distributed equally by Apache Thread-Index: AcNK/nURVf3X5vcYQfWYGwIjxQOc9wAAUdOg From: "Scott Burns" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks very much Simon. :) We will take a look at this. Best Regards, Scott -----Original Message----- From: Simon Pabst [mailto:simon.pabst@web.de]=20 Sent: Tuesday, July 15, 2003 1:25 PM To: Tomcat Users List Subject: Re: Tomcat load not distributed equally by Apache We had the same problem, see this thread=20 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg97638.html Unless mod_jk Developers fix this, the only possible solution seems to build and use Apache 2 with Multithreading support (i used the worker mpm,=20 perchild should work too, see http://httpd.apache.org/docs-2.0/mpm.html ) then build mod_jk1/2 again with the new apxs. I used for my Apache2/mod_jk2/mod_ssl: httpd-2.0.47: ./configure --prefix=3D/path/to/apache2 --with-mpm=3Dworker --enable-ssl = --enable-so --enable-rewrite --enable-proxy tomcat-connectors-1.1M1-src: ./configure --with-apxs2=3D/path/to/apache2/bin/apxs [=20 --with-java-home=3D/path/to/java --with-jni ] At 13:09 15.07.2003 -0400, you wrote: >All: > >We have Apache 2 load balancing two tomcat 4.1.x workers. There are two >primary applications running under tomcat. One app has long session=20 >times - eg the user logs-in in the morning and doesn't end their=20 >session until evening. The other app has short sessions - a connection=20 >is made, some work is performed, and they get out in under 3 minutes. > >Mod_jk is providing the load balancing via weighted round-robin. Both=20 >workers are equally weighted. In theory, each worker should have the=20 >same load distribution. (Truly in theory, each worker gets an=20 >equivalent number of sessions. Right? Our apps have sessions with a=20 >disproportionate number of transactions per session.) > >We see worker1 averaging higher CPU usage. I can justify this behavior=20 >because of session affinity being enabled -- and the huge difference in >transactions per session in the applications. > >Two questions. > >(1) Am I missing something or are our assumptions wrong? > > > >(2) How could we distribute load to the tomcat workers via tomcat CPU=20 >usage instead of round-robin? Is there is a different Apache module=20 >that can load balance via tomcat CPU usage? > >Any help, guidance, direction you can provide would be greatly=20 >appreciated. > >Scott --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org