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 2016/04/09 06:13:25 UTC

[jira] [Commented] (LOG4J2-1361) AsyncAppender never recovers from OutOfMemoryError in AsyncThread.run

    [ https://issues.apache.org/jira/browse/LOG4J2-1361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15233340#comment-15233340 ] 

Remko Popma commented on LOG4J2-1361:
-------------------------------------

[Async Loggers|http://logging.apache.org/log4j/2.x/manual/async.html] provide the ability to configure a custom error handler. This should allow you to solve the problem. 

> AsyncAppender never recovers from OutOfMemoryError in AsyncThread.run
> ---------------------------------------------------------------------
>
>                 Key: LOG4J2-1361
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1361
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.5
>            Reporter: Dan Berindei
>
> We have a test that allocates too much memory, causing {{OutOfMemoryError}}s for a short time. 
> Because {{AsyncThread.run()}} doesn't handle them in any way, the thread exits, and all the logging threads block in {{AsyncAppender.append()}}, hanging the test suite.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org