Uploaded image for project: 'Click'
  1. Click
  2. CLK-776

Starting click is very slow, if the application has a really large number of files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: 3.0.0
    • Component/s: core
    • Labels:
    • Environment:
      Suse SLES 10.3 with XFS filesystem
      Tomcat 6

      Description

      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

        Attachments

        1. LargeContextPatch.patch
          1 kB
          Thomas Herok

          Activity

            People

            • Assignee:
              a_adrian Adrian A.
              Reporter:
              thherok Thomas Herok
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: