Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 78093 invoked from network); 6 Apr 2006 18:09:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 18:09:09 -0000 Received: (qmail 64106 invoked by uid 500); 6 Apr 2006 18:09:02 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 64062 invoked by uid 500); 6 Apr 2006 18:09:02 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 64031 invoked by uid 99); 6 Apr 2006 18:09:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 11:09:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 11:09:01 -0700 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 779F9D49FE for ; Thu, 6 Apr 2006 19:08:40 +0100 (BST) Message-ID: <1621418420.1144346920476.JavaMail.jira@ajax> Date: Thu, 6 Apr 2006 19:08:40 +0100 (BST) From: "Carlin Rogers (JIRA)" To: dev@beehive.apache.org Subject: [jira] Resolved: (BEEHIVE-1093) Add URLTemplateFactory and TemplatedURLFormatter to the request to reduce synchronized bottleneck in ServletContext. In-Reply-To: <1683989171.1144343310883.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/BEEHIVE-1093?page=all ] Carlin Rogers resolved BEEHIVE-1093: ------------------------------------ Resolution: Fixed Assign To: Julie Zhuo (was: Carlin Rogers) This is fixed with revision 392022. The URL template tests successfully passed as well as the usual BVT. http://svn.apache.org/viewcvs?rev=392022&view=rev > Add URLTemplateFactory and TemplatedURLFormatter to the request to reduce synchronized bottleneck in ServletContext. > -------------------------------------------------------------------------------------------------------------------- > > Key: BEEHIVE-1093 > URL: http://issues.apache.org/jira/browse/BEEHIVE-1093 > Project: Beehive > Type: Improvement > Components: NetUI > Versions: V1, 1.0.1 > Reporter: Carlin Rogers > Assignee: Julie Zhuo > Fix For: v.next > > Some containers such as tomcat, implement the ServletContext getAttribute method with synchronization on the attribute object or the attributes map. In beehive NetUI, the URL template factory and the formatter used for rewriting are cached as attributes on the ServletContext. This would be a bottleneck under a large load for an app with pages that require lots of URL rewriting (I.E. lots of NetUI anchor tags, etc.). For each href or URL that needs to be written in a single user request, the URL rewriting gets the ServletContext attributes for the template factory and formatter. > To improve performance, the URL template factory and formatter could be set as attributes to the request. Then, the URL rewriting could get the template factory and formatter from the individual request and minimize the conflict with multiple user requests and the synchronization at the ServletContext attributes. Note, we still need to cache these objects globally as attributes on the context but at the start of processing a page flow request, the objects could be pulled from the context and added to the request. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira