Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 45100 invoked from network); 2 Apr 2002 17:21:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 2 Apr 2002 17:21:59 -0000 Received: (qmail 22803 invoked by uid 97); 2 Apr 2002 17:21:36 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 22787 invoked by uid 97); 2 Apr 2002 17:21:35 -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 22776 invoked from network); 2 Apr 2002 17:21:35 -0000 Message-ID: <580F4ACFCD8F4E439B06B815110418C702B2A0A4@xcup03.cup.hp.com> From: "PERIYANAN,VISWA (Non-HP-Cupertino,ex1)" To: 'Tomcat Users List' Subject: mod_jk and load distribution among tomcat servers Date: Tue, 2 Apr 2002 12:21:20 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I am using two tomcat severs load balanced by mod_jk(with apache). The load factor (as specified in the workers.properties) for the both the tomcat servers are the equal. To test whether the load is being distributed equally, I sent 100 requests to the apache server. The servlet code under both tomcat being identical, I found that When the servlet to which the request is being sent responds quickly (less than few seconds), the number of request sent to both tomcat1 and tomcat2 were equal (50 requests each). When the servlet take a longer time (say 3 minutes) to respond, the request distribution is not so equal (3 request for one server and 97 for the other). I did a Thread.sleep(1000*60*3) to delay the response. Is there any way I can make the load balancer distribute the load equally among the servers? Thank you, viswa. -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: