logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bit1129@163.com" <bit1...@163.com>
Subject Log4j2 RollingFileAppender deadlock issue
Date Thu, 02 Jul 2015 05:36:26 GMT

Hi,log4j developers,

I am using log4j2 to do log. Recently I have encountered an RollingFileAppender deadlock issue
from time to time which happens around 12:00 am ~03:00am. 
When I dump the thread, there are lots of BLOCKED threads that waiting for the lock 0x00000007a2cecaa0.

Following is my log4j configuration in log4j2.xml:

<RollingFile name="rolling" fileName="/data/logs/app/server.log" filePattern="/data/logs/app/server.log.%d{yyyy-MM-dd}">

<PatternLayout pattern="[%-5level] [%d{yyyy-MM-dd HH:mm:ss}] [%C{1}:%M:%L] %m%n" />

<Policies> 
<TimeBasedTriggeringPolicy /> 
</Policies> 
<DefaultRolloverStrategy max="30"/> 
</RollingFile>

Is this a bug or there is some misconfiguration in my configuration. Is there a way that I
can work around this? It happens in our production environment.







bit1129@163.com
Mime
View raw message