Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-593 Dinimish contention among concurrent threads when using logback
  3. LOGBACK-646

AppenderBase doAppend is synchronized causing significant performance problems when calling appenders.

    XMLWordPrintable

Details

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • All

    Description

      Slow appenders cause Logback to be a significant bottleneck in the system. AppenderBase doAppend is synchronized to allow Appenders to be threadsafe. This is an extremely poor way to accomplish that. Many Appenders are slow since they are dealing with I/O of some kind but may be thread safe. Where they are not they should deal with the issue at the smallest granularity possible. AppenderBase must be changed to not be synchronized and any Appenders that are not thread safe should be modified appropriately.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            rgoers@apache.org Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: