You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2013/07/22 11:38:49 UTC
[jira] [Reopened] (LOG4J2-280) AsynchAppender's AsynchThread blocks
Tomcat shutdown
[ https://issues.apache.org/jira/browse/LOG4J2-280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma reopened LOG4J2-280:
--------------------------------
Ah... My mistake!
Only AsyncLogger threads are daemon threads. I did not fix the AsyncAppender thread...
I'll fix this soon, so it is in the next release.
As a workaround, is it possible for you to use the AsyncLoggers instead of AsyncAppender?
> AsynchAppender's AsynchThread blocks Tomcat shutdown
> ----------------------------------------------------
>
> Key: LOG4J2-280
> URL: https://issues.apache.org/jira/browse/LOG4J2-280
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.0-beta4, 2.0-beta5, 2.0-beta6, 2.0-beta7
> Environment: Log4j 2.0 beta 4, Tomcat 6, Java 6 @ Mac OS X
> Reporter: Matej Vitásek
> Assignee: Remko Popma
> Fix For: 2.0-beta8
>
>
> 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?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org