Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6514

High usage of file descriptors caused by resource monitoring.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • 5.4.5
    • 5.4.4
    • resource-loader
    • Java 8, OSX, Tomcat 7, Derby
    • Basel 35
    • 2

      I tested our Magnolia 5.4.2 to Magnolia 5.4.4 upgrade, and found something unexpected.

      In 5.4.4 you have the option to let Magnolia watch resources (which is the default):

      magnolia.resources.classpath.observation.pattern=.*\\.(ftl|yaml)$
      

      However this results in a high use of filedescriptors, around 4500 filedescriptors, which is quite a lot.

      I tested the setting which watches 'nothing':

      magnolia.resources.classpath.observation.pattern=.*\\.(nonel)$
      

      Which gave a use of around 2000 filedescriptors.

      If I want to watch css and js as well (which also live in the resources) like:

      magnolia.resources.classpath.observation.pattern=.*\\.(yaml|ftl|css|js)$
      

      Magnolia no longer runs properly and uses close to 10000 filedescriptors which is the default limit on an OSX system.

      I can up the limit of course, but the numbers seem quite excessive.

        Acceptance criteria

          1. fd-dump.txt
            1.65 MB
          2. magnolia.log
            233 kB
          3. magnolia-resource-loader-5.4.6-SNAPSHOT.jar
            117 kB
          4. screenshot-1.png
            screenshot-1.png
            157 kB

              ilgun Ilgun Ilgun
              rico.jansen Rico Jansen
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 5h
                    5h