Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 35322 invoked from network); 16 Jul 2002 10:57:19 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Jul 2002 10:57:19 -0000 Received: (qmail 3474 invoked by uid 97); 16 Jul 2002 10:57:28 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 3458 invoked by uid 97); 16 Jul 2002 10:57:27 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 3446 invoked by uid 98); 16 Jul 2002 10:57:26 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <018901c22cb7$3096c620$6501a8c0@kasim> From: "Arshad Mahmood" To: "Tomcat Developers List" References: <20020715155602.L63610-100000@icarus.apache.org> Subject: Some advice regarding mod_jk Date: Tue, 16 Jul 2002 11:54:12 +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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 developing an using mod_jk, apache 1.3.26 and Tomcat 4.1.7, Redhat 7.2 and have come across an issue with regards to mod_jk. Now I assumed that the Ajp13Processors under mod_jk acted as pool to process incoming requests. But I hadn't realised that a processor is created per socket and then it processes requests on that socket until it is shut down. This means that even on a lightly loaded machine I can quite easily have 7-8 processors (hence threads, hence processes) depending on which apache child processes my request. I would like to modify the code for the Ajp13Connector as follows, and I wonder what the developers think the consequence would be for reasonble sized sight (say ~10,000 hits a day). 1. Add a maxIdleProcessors, so that short periods of peak activity don't leave loads of processors hanging around. I would probably set this value quite low (probably 2-3). 2. I would modify Ajp13Processor so that it processes a single request and then recycles itself, rather than waiting for more requests on the same socket. I have made these changes and tested them and the behaviour doesn't appear to be too bad. Peak activity does slow a little bit, but overall usage of resources (i.e. threads) is much lower. Any comments? Regards, Arshad -- To unsubscribe, e-mail: For additional commands, e-mail: