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

ch.qos.logback.classic.db.DBAppender does not unload on undeploy running on tomcat causing a memory leak

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.9, 1.0.13, 1.1.3
    • logback-classic

    Description

      I'm attaching a skeleton web servlet that illustrates the problem. Deploying the project and immediately after that undeploying it, will not cause a memory issue since the logger isn't triggered. If however, you use a browser and navigate to http://localhost:8080/mem-leak/ the application cannot unload since the DBAppender has been invoked.
      If you remove the references to DBAppender from logback.xml everything works like a dream no matter what you do.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            turin Søren Turin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: