jboss配置控制台日志输出导致死锁

在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 

猜你喜欢

转载自www.cnblogs.com/yytxdy/p/12397083.html