We lost in production some hourly rolled log since we use org.apache.log4j.rolling.TimeBasedRollingPolicy with gz. This happens for the appender named "File".
Anybody saw that? Any solution? It seems to happen only under load. Log4j do not leave any useful trace of the reason other than: log4j:WARN Failure in post-close rollover action <appender name="File" class="org.apache.log4j.rolling.RollingFileAppender"> <param name="File" value="c:/logs/ct/ct_info.log"/> <param name="Append" value="true"/> <param name="ImmediateFlush" value="true"/> <param name="Encoding" value="UTF-8" /> <param name="BufferedIO" value="true"/> <param name="BufferSize" value="1"/> <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy"> <param name="FileNamePattern" value="c:/logs/ct/ct_info.%d{yyyy-MM-dd-HH}.log.gz"/> </rollingPolicy> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%-5p] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%x] [%m] %n"/> </layout> </appender> <appender name="ThreadDumpsFile" class="org.apache.log4j.rolling.RollingFileAppender"> <param name="File" value="c:/logs/ct/threadDumps.log"/> <param name="Append" value="true"/> <param name="ImmediateFlush" value="true"/> <param name="Encoding" value="UTF-8" /> <param name="BufferedIO" value="true"/> <param name="BufferSize" value="1"/> <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy"> <param name="FileNamePattern" value="c:/logs/ct/threadDumps.%d{yyyy-MM-dd}.log.gz"/> </rollingPolicy> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%-5p] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%x] [%m] %n"/> </layout> </appender> <appender name="SocketAsyncAppender" class="org.apache.log4j.AsyncAppender"> <param name="BufferSize" value="256"/> <param name="Blocking" value="true"/> <!--filter class="org.apache.log4j.filter.DenyAllFilter"/--> <appender-ref ref="SocketAppender"/> </appender> <appender name="SocketAppender" class="com.saic.ct.sys.framework.logging.CTSocketAppender"> <param name="Port" value="4445"/> <param name="RemoteHost" value="localhost"/> <param name="LocationInfo" value="false"/> </appender> <!-- This is expected to be use only to send stuff to RAD console, so only in development --> <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"> <param name="ImmediateFlush" value="true"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%-5p] [%d{yyyy-MM-dd HH:mm:ss,SSS}] [%x] [%m] %n"/> </layout> </appender> <appender name="AsyncAppender" class="org.apache.log4j.AsyncAppender"> <param name="BufferSize" value="256"/> <param name="Blocking" value="true"/> <appender-ref ref="File"/> <appender-ref ref="ConsoleAppender"/> </appender> --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org