Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6863610D95 for ; Mon, 15 Jul 2013 13:40:08 +0000 (UTC) Received: (qmail 78159 invoked by uid 500); 15 Jul 2013 13:40:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78114 invoked by uid 500); 15 Jul 2013 13:40:04 -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 78082 invoked by uid 99); 15 Jul 2013 13:40:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 13:40:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cheshirator@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 13:39:53 +0000 Received: by mail-pb0-f52.google.com with SMTP id xa12so11140083pbc.39 for ; Mon, 15 Jul 2013 06:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CqV7Y3hxXkI+VyXuzXgrBzoOXPzUTBYWHEza/RfWRH8=; b=xZBr8ghKVOyy7ze2QIZTNXkp2pBVghMieDzn3w0Z8ZtF3TNSFP0K8HfL1cHs5+2zo9 PFrXTFPHP30QJg1QU6DydwbdTD01pFfYVNBSeo891crYECc6nV8a/NAsnes+GHIrh1Ew IbOSpnhjBu0hnFjoNqe800XUeYNdg2CXDm8GQ9cvNKwmd1OXGVlBSgtwCoNqOSoUPYtb X/piYxo2ja9EtofWfzwS8O2PvRmVR41aes22HSlSE9lkXjpd4CHgaoGQ5aARjADMOs2O QNosMLdgusH2jqotVRpkAVOsyrPqU9ERh1nx2OSQucAQNZd3Lq05S17t9HLkRgYitj8e s6Tg== MIME-Version: 1.0 X-Received: by 10.66.252.234 with SMTP id zv10mr55597092pac.186.1373895573038; Mon, 15 Jul 2013 06:39:33 -0700 (PDT) Received: by 10.68.209.198 with HTTP; Mon, 15 Jul 2013 06:39:32 -0700 (PDT) In-Reply-To: <51E006C8.7030106@christopherschultz.net> References: <51E006C8.7030106@christopherschultz.net> Date: Mon, 15 Jul 2013 09:39:32 -0400 Message-ID: Subject: Re: tomcat7 & tldScanJar warning From: Chris Cheshire To: Tomcat Users List Content-Type: multipart/alternative; boundary=047d7b15b1f596ee9304e18cfd99 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15b1f596ee9304e18cfd99 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jul 12, 2013 at 9:38 AM, Christopher Schultz < chris@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Chris, > > On 7/11/13 2:51 PM, Chris Cheshire wrote: > > I am working on migrating from TC6 to 7, and noticed in the log > > file the info messages about jars being needlessly scanned. Did all > > my googling and stuff and added all the jars mentioned to the > > catalina.properties file. > > > > All the warnings are gone, but it has done absolutely nothing to > > improve startup time nor page compile time. For a setup with about > > 12 hosts, and at least one context each it is still taking about 75 > > seconds to start up, give or take a couple of seconds every time, > > and it still takes about 10 seconds to compile a page. > > > > The last couple of replies on > > https://issues.apache.org/bugzilla/show_bug.cgi?id=51248 seem to > > imply that doing so should increase performance, but I'm not seeing > > it. > > > > Is there really any benefit to this that I am missing? It's > > cumbersome editing this and restarting tomcat if I update a web app > > and add have to add a new dependency. > > Are you using 3.0-compatible webapps? If so, try setting > metadata-complete="true" in your element: this will stop > Tomcat from scanning the JAR files for other things (not just TLDs) > and may improve startup time. > > I changed the web.xml declaration to If that is all I need to do then, yes. > If you want to know what Tomcat is doing during those 75-seconds, take > some thread dumps and read them. > > Alright, I'll have a hunt around and find out what to do there. I'll also change the TC logging some more and see what it spits out. All I changed was the line for the TLD scanner Thanks, Chris --047d7b15b1f596ee9304e18cfd99--