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

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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.10
    • 1.1.6, 1.1.7
    • logback-core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: