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

File handles to tmp file kept open after rotation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.7, 1.2.3
    • Fix Version/s: None
    • Environment:

      Description

      I'm using kairosdb 1.1.3 which uses logback as it's logging library. When the log reaches 100MB the log rotates successfully, but many .tmp files are held open, resulting in the disk space not being freed up:

      java 13075 31552 root 2w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31561 root 1w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31561 root 2w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31632 root 1w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31632 root 2w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31637 root 1w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31637 root 2w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31639 root 1w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)
      java 13075 31639 root 2w REG 253,1 104911776 589454 /opt/kairosdb/log/kairosdb.log1696340173764370.tmp (deleted)

       

      I tried updating the the latest versions of logback-core and logback-classic, but still see the same issue

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              logback-dev Logback dev list
              Reporter:
              rilott Ross Ilott
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: