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

SyslogAppender leaks file descriptors

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 1.1.2
    • logback-core
    • None
    • Linux

    Description

      When reinitiating/reinitializing logback, one is supposted to call detachAndStopAllAppenders, that method in turn will end up calling close on all SyslogAppender's , but the implementation in SyslogAppender does not actually close the DatagramSocket by calling the close method, but leave it to GC to collect by killing references.

      We refresh application configuration each 10 seconds ( reinitating the logging as well ) that makes all applications leak UDP sockets (filedsc).

      Log4j fixed this in 1.2.17.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            fmohsen Fadi Mohsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: