Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-280

AsynchAppender's AsynchThread blocks Tomcat shutdown

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta4, 2.0-beta5, 2.0-beta6, 2.0-beta7
    • Fix Version/s: 2.0-beta8, 2.0-beta9
    • Component/s: None
    • Labels:
      None
    • Environment:

      Log4j 2.0 beta 4, Tomcat 6, Java 6 @ Mac OS X

      Description

      Since I added an AsynchAppender to my configuration (to send mails with errors asynchronously), my Tomcat refuses to shut down nicely. It always freezes on a line like this:
      ...
      Jun 11, 2013 6:57:04 PM org.apache.coyote.http11.Http11Protocol destroy
      INFO: Stopping Coyote HTTP/1.1 on http-8080
      Jun 11, 2013 6:57:04 PM org.apache.coyote.http11.Http11Protocol destroy
      INFO: Stopping Coyote HTTP/1.1 on http-8443

      At this point, there is a non-daemon thread called "Thread-2" that, if I kill, Tomcat stops nicely.

      I have traced this issue to the AsynchThread in AsynchAppender, and if I stop using it in my configuration, Tomcat stops nicely again.

      Could you tell me what additional information I may provide to help track down this issue?

        Attachments

          Activity

            People

            • Assignee:
              remkop@yahoo.com Remko Popma
              Reporter:
              vektor330 Matej Vitásek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: