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 648DB108C4 for ; Thu, 5 Dec 2013 08:19:04 +0000 (UTC) Received: (qmail 88170 invoked by uid 500); 5 Dec 2013 08:18:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 87908 invoked by uid 500); 5 Dec 2013 08:18:53 -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 87898 invoked by uid 99); 5 Dec 2013 08:18:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 08:18:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 08:18:45 +0000 Received: by mail-wi0-f171.google.com with SMTP id ca18so9479697wib.10 for ; Thu, 05 Dec 2013 00:18:25 -0800 (PST) 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=Up7fBYe++8SVboIwy5HKj43S47TQCf79/QxZYC1xVvo=; b=JmoOIZ5pSQxzzzM6Dcj5wCPv8TcWnTERmqSIN42XpYuWaR9RbNdU70NOgjFPDOEX6J HI7C6Bwwy+yCAvy7JLdYq1rABe3ED3MthjeQ566+0OSva+XZkflyA2XatESM2V2DrBFB SBG7lDWVsO57Hvg/h2KNvrq9KkBu2Mf0hiZqRXS5X56oGPDxg/oQ6HRzZzlHdnga/dx/ 0hnUH4tEre/ZA+5+KWzqEwXdlAhd+YWNth6TBHDhrC8pxePnrYaUTiCusQIoMHIzfqjU 7NLViJUeDhSii35Qu9ZSk5udzWSc3eo2E5W6XIE0S1QPySlsuKDKHuZYm2LLSCJC6Uje y3VQ== MIME-Version: 1.0 X-Received: by 10.180.210.130 with SMTP id mu2mr10584291wic.61.1386231505103; Thu, 05 Dec 2013 00:18:25 -0800 (PST) Received: by 10.216.70.203 with HTTP; Thu, 5 Dec 2013 00:18:25 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Dec 2013 12:18:25 +0400 Message-ID: Subject: Re: Severe 7.0.47 startup performance regression From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2013/12/5 David Rees : > Since upgrading to 7.0.47 from 7.0.42, I've seen a very severe > performance hit during startup. > > One Tomcat instance with a lot of webapps slowed down from ~33 seconds > to ~180 seconds. It appears to be related to jar-scanning - If I > change catalina.properties' > tomcat.util.scan.DefaultJarScanner.jarsToSkip to *.jar, startup > performance is actually about 10% better than before, but with the > expected app-breakage. If I go and modify jarsToSkip to manually > exclude only the jars I know should be excluded, performance is near > normal - about 10-15% worse than 7.0.42 which is acceptable but > obviously could still be better. > > I've reviewed the changelog between 7.0.42 and 7.0.47, but can't find > anything that might cause this. > > All the deployed apps are using servlet api 2.5. > > I've reviewed the FasterStartUp startup wiki and the apps already use > metadata-complete="true" in the web.xml. Good. Remove the tomcat7-websocket.jar library if you do not need it. This library (added in 7.0.47, a JSR-356 Java WebSocket 1.0 implementation) has a ServletContainerInitializer and thus forces Tomcat to perform annotation scanning. If you read the "FasterStartUp" page carefully, it is explained there. > Any other suggestions? Update the apps to servlet api 3.0 and put in > an empty element? > > Is there a way to get the scanners to log whether or not a scan found > anything so they can be added to the appropriate jarsToSkip parameter? > I've only found that the TLD scanner does this unless I'm missing > something. > > Any other ideas? > Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org