Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D2F9D0A3 for ; Sat, 3 Nov 2012 11:24:40 +0000 (UTC) Received: (qmail 99083 invoked by uid 500); 3 Nov 2012 11:24:38 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 98694 invoked by uid 500); 3 Nov 2012 11:24:37 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 98647 invoked by uid 99); 3 Nov 2012 11:24:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2012 11:24:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2012 11:24:34 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 0DDD6A1E1; Sat, 3 Nov 2012 11:24:13 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 54065] getResource with WARDirContext is very expensive Date: Sat, 03 Nov 2012 11:24:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markt@apache.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=54065 --- Comment #3 from Mark Thomas --- (In reply to comment #2) > Thanks for the tip with the ContextConfig.jarsToSkip. That worked out well! > Of course that also disables web-fragment parsing, right? Answered in comment #1. > We have not been able to remove META-INF/resources though as this location > is used by other EE specs (e.g. JSF) since years. So there is practically no > way around this without breaking almost all JSF projects. Yes there is, ContextConfig.jarsToSkip. > Thus I still think you should investigate the performance. It's sad that > servlet-3.0 requires to lookup resources in JNDI upfront. This is not a Servlet 3.0 requirement but a consequence of how Tomcat implements resources. The implementation isn't going to change as it is already very fragile. It has been re-written for Tomcat 8 and the caching in the new implementation should handle this. > This is utter > expensive and really costs up to 20% of our performance. It's sad to see > that some EGs try to add as much features as possible without thinking about > the possible consequences. The Servlet EG members have very little say in what is in or out of the spec. Once Oracle decide a major feature is in/out then it is very hard to change that decision. > Maybe this can be solved via a negative cache > (remembering JNDI misses)? Or probably via an own configuration to disable > this behaviour? Again, ContextConfig.jarsToSkip -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org