Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 69369 invoked from network); 6 Jul 2007 07:27:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 07:27:21 -0000 Received: (qmail 52683 invoked by uid 500); 6 Jul 2007 08:46:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52662 invoked by uid 500); 6 Jul 2007 08:46:32 -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 52649 invoked by uid 99); 6 Jul 2007 08:46:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 01:46:32 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Dale_Roberts@scee.net designates 194.106.220.67 as permitted sender) Received: from [194.106.220.67] (HELO mail93.messagelabs.com) (194.106.220.67) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 06 Jul 2007 01:46:25 -0700 X-VirusChecked: Checked X-Env-Sender: Dale_Roberts@scee.net X-Msg-Ref: server-15.tower-93.messagelabs.com!1183711561!3712971!1 X-StarScan-Version: 5.5.12.11; banners=-,-,- X-Originating-IP: [217.18.20.60] Received: (qmail 5871 invoked from network); 6 Jul 2007 08:46:01 -0000 Received: from cetclx001.scee.net (HELO cetclx001.scee.net) (217.18.20.60) by server-15.tower-93.messagelabs.com with SMTP; 6 Jul 2007 08:46:01 -0000 To: users@tomcat.apache.org Subject: iPlanet / SunONE web server tomcat connector connection re-use disabled MIME-Version: 1.0 Message-ID: From: Dale_Roberts@scee.net Date: Fri, 6 Jul 2007 09:45:56 +0100 X-MIMETrack: Serialize by Router on CELOCB08/UK/SVR/SCEE(Release 7.0.2FP1|January 10, 2007) at 06/07/2007 09:46:01, Serialize complete at 06/07/2007 09:46:01 Content-Type: multipart/alternative; boundary="=_alternative 0030269380257310_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0030269380257310_= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, BACKGROUND: I have been using the tomcat connector for Netscape / SunONE web server from the tomcat-connectors-1.2.23-src bundle available from the main tomcat site. I have found that connections are not being re-used by the connector. i.e. the connector opens a separate connection to tomcat for each and every request it's configured to pass to tomcat and then closes that connection after receiving it's response. When I enable debug logging for the connector I see messages telling me that connection re-use is disabled. I found reference to an option for apache to disable re-use but nothing for Netscape. Looking at the source code I find that all but the Netscape connector appear to have a "s->disable_reuse = JK_FALSE;" statement in the "init_ws_service" function in the connector source code file (jk_nsapi_plugin.c for Netscape). As a test I have added this to the Netscape connector and re-compiled and it now re-uses connections which is an obvious performance gain (I'm assuming here as I haven't benchmarked anything). The implication is that someone either explicitly set re-use to be disabled for Netscape, presumably due to problems not immediately obvious if re-use is enabled,, or someone changed the common code to make re-use optional but forgot to enable it by default in the Netscape connector. I only suggest the latter as there is no immediately obvious indication that it is intentionally disable in Netscape and the plug-in seems to work with it enabled after some very brief testing. QUESTION: Can anyone confirm or deny whether the Netscape connector should not have connection re-use enabled as the other connectors do. Some overview of any reason would also be much appreciated. Many Thanks in advance. Dale Roberts ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@scee.net This footnote also confirms that this email message has been checked for all known viruses. Sony Computer Entertainment Europe Limited Registered Office: 10 Great Marlborough Street, London W1F 7LP, United Kingdom Registered in England: 3277793 ********************************************************************** --=_alternative 0030269380257310_=--