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

Logback spawning threads in AsynchronousCompressor

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.0.1
    • logback-core
    • None
    • Windows 7/Java7

    Description

      In ch.qos.logback.core.rolling.helper.AsynchronousCompressor.compressAsynchronously(String, String, String), a new thread pool is allocated every time to run a single Runnable. When I restart the application, sometimes logback invokes this code hundreds or thousands of times with temporary log file names that do not even exist. For each such invocation, a new thread pool is created, making Eclipse's debugger view with the thread list jump/flash as the new thread is created/removed. Even not considering that, this is a very bad usage of resources. Why not have a fixed thread pool and use it for all asynchronous executions?

      Attachments

        Activity

          People

            logback-dev Logback dev list
            kofa KOVACS Istvan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: