Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-44052

Resources/Files connections are left open when checking for last modification

    Details

      Description

      Resources are not closed after checking for last modification time me in ServletContextUtil.getLastModified(ServletContext servletContext, String path, boolean cache). Leaving server with caa 21k+ open descriptors, that results in too many open files exception.

      We ware evaluating problems with deployment of LifeRay to WildFly 8 described in
      https://issues.jboss.org/browse/WFLY-2862
      Problem was traced to the way LifeRay gets timestamps which leaves files handles open until GC cleans them up.
      With this fix applied users are not seeing problems with "too many open files" anymore.

        Attachments

        1. 1-URLConnection.png
          1-URLConnection.png
          1 kB
        2. 2-File.png
          2-File.png
          1 kB
        3. 3-InputStream.png
          3-InputStream.png
          1 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 50 weeks ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M1