Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20301 invoked from network); 15 Sep 2010 17:48:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 17:48:31 -0000 Received: (qmail 6180 invoked by uid 500); 15 Sep 2010 17:48:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 6116 invoked by uid 500); 15 Sep 2010 17:48:27 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 6107 invoked by uid 99); 15 Sep 2010 17:48:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 17:48:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.13.194.222] (HELO button.heenan.me.uk) (212.13.194.222) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 17:48:19 +0000 Received: from squiffle.localnet (5e0879bf.bb.sky.com [94.8.121.191]) by button.heenan.me.uk (Postfix) with ESMTPSA id 2105FAC0DE for ; Wed, 15 Sep 2010 18:47:58 +0100 (BST) From: John Baker To: "Tomcat Users List" Subject: Re: 2 second delays in mod_jk while "maintaining workers" Date: Wed, 15 Sep 2010 18:47:57 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32-23-generic-pae; KDE/4.4.5; i686; ; ) Organization: Java System Solutions MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201009151847.57413.jbaker@javasystemsolutions.com> X-Virus-Checked: Checked by ClamAV on apache.org Hello, I've spent a week looking into mod_jk, Apache, etc., and the problem appears to be due to a bug in the AJP connector within JBoss: https://jira.jboss.org/browse/JBPAPP-366 This bug is not fixed in the latest release of JBoss 4.2.3, which is rather disappointing. After downloading the jbossweb-2.0.1-GA source from subversion, patching, recompiling with Java 1.5 (if you want it to work on the Java 1.5 and 1.6 versions of JBoss 4.2.3), the problem disappears. While solving this problem, I identified the need for a debug statement to be generated from mod_jk when the poll(..) fails, i.e. waited 2 seconds and discovered the socket was not being shut properly. Mladen has kindly added this to the next release. Thanks to everyone who's contributed and if I have any further updates, I will let you know. John --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org