Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 52886 invoked from network); 15 Jan 2003 17:20:30 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 Jan 2003 17:20:30 -0000 Received: (qmail 26894 invoked by uid 97); 15 Jan 2003 17:20:02 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 26836 invoked by uid 97); 15 Jan 2003 17:20:01 -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 26801 invoked by uid 98); 15 Jan 2003 17:20:00 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <01f501c2bcba$63d2bf10$2405a8c0@wookie> From: =?iso-8859-1?Q?Julian_L=F6ffelhardt?= To: "Tomcat Users List" References: <9E6CC0F8FF855245B3307DAA519A376409F7898B@txsna09msgusr02.ITServices.sbc.com> Subject: Re: concern about Apache + mod_jk + Tomcat cluster Date: Wed, 15 Jan 2003 18:19:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 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, Make sure you have set the MaxProcessors property of the AJP13 Connector in server.xml to an equal or higher value as specified in MaxClients of the httpd.conf. llap, julian ----- Original Message ----- From: "YOU, JERRY (SBCSI)" To: Sent: Wednesday, January 15, 2003 6:04 PM Subject: concern about Apache + mod_jk + Tomcat cluster > Hi, > I installed the Apache1.3.27, mod_jk1.2.1 and Tomcat4.1.18 recently on our > Solaris6 machine. The approach is that let 1 apache as web server dispatches > requestes to the 3 tomcat server instances. There is no error in the > configuration, > and install. But when I was load-testing the application, I noticed that > there were > lots of error message shown in the mod_jk file, although all the requests > were > dispatched to the tomcat servers and responded with 200. > > I then changed the 3 tomcat servers' configure as following: > port="11009" minProcessors="1" maxProcessors="1" > acceptCount="10" debug="1"/> > So now every Tomcat can only accept 1 request at the same time. > I then sent 3 concurrent requests to the cluster: tomcat21, tomcat22, > tomcat23. > From the debug/log file, I think the mod_jk and tomcats are working like : > 1, 3 requests reaches mod_jk, mod_jk sends requests to tomcat21 > 2, tomcat21 accepts the first one and rejects the other 2, > 3, mod_jk logs errors in mod_jk.log, reports the tomcat is down or network > problem. > 4, mod_jk then sends the 2 to tomcat22 > 5, tomcat22 accepts 1 and rejects the other. > 6, mod_jk again logs errors. > 7. mod_jk sends the alst one to tomcat23, > 8, tomcat 23 accepts it. > > I think there is nothing wrong with this procedure, but besides the annoying > error messages, > the whole performance is poor due to the time spent in the probes. I also > suspect that > the socket connection in Solaris6 is too slow, for some reason. > > I have questions for those who have the tomcat cluster in there production > site: > how about the performance in your site? Is there anything wrong with my > configuration or should > I use JK2 to improve performance? > > The configuration files and log files are attached with this email. > > OS: Solaris 6 > Apache1.3.27, Tomcat 4.1.18, mod_jk1.2.1( I can not find the binary mod_jk > at the apache.org site > under solaris6 directory, so, I download the one in Solaris8 dir). > > Thanks, > > Jerry You <> <> > <> <> > <> <> > ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: