Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1170

Log file handle/descriptor not closed/released after WAR file redeploy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.6, 1.1.7
    • Fix Version/s: 1.1.10
    • Component/s: logback-core
    • Labels:
      None
    • Environment:

      Tomcat 8
      Windows Server 2012 R2

      Description

      After every WAR file redeploy (Tomcat 8) a new file handle/descriptor to the current log file will be created. The undeploy of the old WAR file will not close/release the open file handle/descriptor to the current log file. Therefore, the number of file handles/descriptors to the current log file increases with every WAR file redeploy. Unfortunately, logback cannot role a log file with 2 or more open file handles/descriptors -> the RollingFileAppender is not working anymore.

      Why logback does not close/release the file handle/descriptor to the current log file when a WAR file was undeployed?

      Stopping the logging context by hand is odd.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              mwe@ebp.de Martin Wegner
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: