Return-Path: X-Original-To: apmail-click-dev-archive@www.apache.org Delivered-To: apmail-click-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 8955B7C24 for ; Wed, 20 Jul 2011 12:34:20 +0000 (UTC) Received: (qmail 65616 invoked by uid 500); 20 Jul 2011 12:34:20 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 65517 invoked by uid 500); 20 Jul 2011 12:34:19 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 65508 invoked by uid 99); 20 Jul 2011 12:34:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 12:34:19 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 12:34:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EC9D24A3FA for ; Wed, 20 Jul 2011 12:33:57 +0000 (UTC) Date: Wed, 20 Jul 2011 12:33:57 +0000 (UTC) From: "Thomas Herok (JIRA)" To: dev@click.apache.org Message-ID: <1281877281.7534.1311165237965.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <657182959.7149.1311154737808.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CLK-776) Starting click is very slow, if the application has a really large number of files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLK-776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068325#comment-13068325 ] Thomas Herok commented on CLK-776: ---------------------------------- Hi, sadly, the 2.5 million files are not static. They are/were generated by the application and the number is increasing slowly on daily base. The click.xml is not used in this case. The method getTemplateFiles() in the XmlConfigService class takes a peak at every file in the web application and is called in the loadPages method. No configuration changes this behavior. Even if automapping is set to "false", getTemplateFiles() is called. Best regards Thomas Herok > Starting click is very slow, if the application has a really large number of files > ---------------------------------------------------------------------------------- > > Key: CLK-776 > URL: https://issues.apache.org/jira/browse/CLK-776 > Project: Click > Issue Type: Bug > Components: core > Affects Versions: 2.3.0 > Environment: Suse SLES 10.3 with XFS filesystem > Tomcat 6 > Reporter: Thomas Herok > Priority: Minor > Labels: patch > Attachments: LargeContextPatch.patch > > > Hi, > We have a problem with the start-up of the Click framework. Our tomcats take up to 15 minutes to start it. > The web application has around 2.5 million small files in a XFS file system (ouch). > During the resolution of the list of templates within the web application Click will traverse all the directories and files and this really takes some time. > So, we patched the XmlConfigService and it will only look into one configured folder. This speeds up our starts significantly. The folder is configured as init parameter in the web.xml. > It would be great, if this patch would be in the next release. > Attached you will find the patch. > Best regards > Thomas Herok -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira