在Jboss中设置了控制台日志输出会导致JBoss死锁,因为Jboss会捕获控制台的输出,并使用log4j进行日志输出,如果在log4j中配置了ConsoleAppender,则会产生一个循环,导致死锁

WildFly, and JBoss AS 7/JBoss EAP 6, capture System.out and System.err and pass them through to a logger. When the ConsoleAppender also tries to write to System.out this stream has been captured so there could definitely be deadlocks 

 

posted on 2020-03-02 18:00  yytxdy  阅读(381)  评论(0编辑  收藏  举报