[ https://issues.apache.org/jira/browse/LOG4J2-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers resolved LOG4J2-1032. --------------------------------- Resolution: Fixed Fix Version/s: 2.8 The fix for this is now in master. It consists of 2 parts: 1. Only the files that exist will attempt to be renamed. Previously it looked for all files from min to max. 2. fileIndex="nomax" can now be specified. This will simply increment the counter for each new archive so no renames occur at all. Please verify and close if it works for you. > Rollover startegy failing on high load > -------------------------------------- > > Key: LOG4J2-1032 > URL: https://issues.apache.org/jira/browse/LOG4J2-1032 > Project: Log4j 2 > Issue Type: Bug > Components: Appenders > Affects Versions: 2.1 > Reporter: Binoy Varghese > Assignee: Ralph Goers > Fix For: 2.8 > > > On windows virtual machines, the roll over strategy simply fails and the log > size becomes huge. This happens on high load on tomcat server. > Log4j2 is loaded from our application using below configuration > {code} > <?xml version="1.0" encoding="UTF-8"?> > <Configuration status="OFF"> > <!-- Appenders --> > <Appenders> > <RollingFile name="xxxRootAppender" > > fileName="${sys:catalina.base}/logs/xvx/com.xvx.connector.log" > > filePattern="${sys:catalina.base}/logs/xvx/com.xvx.connector-%d{dd-MM-yyyy}#%i.log"> > <PatternLayout pattern="[%d{yyyy-MM-dd > HH:mm:ss}][%t][%p] %m%n" /> > <Policies> > <TimeBasedTriggeringPolicy /> > <SizeBasedTriggeringPolicy size="100 MB" /> > </Policies> > <DefaultRolloverStrategy max="50" /> > </RollingFile> > <RollingFile name="xxxRequestResponseAppender" > > fileName="${sys:catalina.base}/logs/xvx/com.xvx.connector-request-response.log" > > filePattern="${sys:catalina.base}/logs/xvx/com.xvx.connector-request-response-%d{dd-MM-yyyy}#%i.log"> > <PatternLayout pattern="[%d{yyyy-MM-dd > HH:mm:ss}][%t][%p] %m%n" /> > <Policies> > <TimeBasedTriggeringPolicy /> > <SizeBasedTriggeringPolicy size="100 MB" /> > </Policies> > <DefaultRolloverStrategy max="50" /> > </RollingFile> > <RollingFile name="xxxTimeAppender" > > fileName="${sys:catalina.base}/logs/xvx/com.xvx.connector-time.log" > > filePattern="${sys:catalina.base}/logs/xvx/com.xvx.connector-time-%d{dd-MM-yyyy}#%i.log"> > <PatternLayout pattern="[%d{yyyy-MM-dd > HH:mm:ss}][%t][%p] %m%n" /> > <Policies> > <TimeBasedTriggeringPolicy /> > <SizeBasedTriggeringPolicy size="100 MB" /> > </Policies> > <DefaultRolloverStrategy max="50" /> > </RollingFile> > <!-- Spring framework Appender --> > <RollingFile name="springFrameworkAppender" > > fileName="${sys:catalina.base}/logs/xvx/org.springframework.log" > > filePattern="${sys:catalina.base}/logs/xvx/org.springframework-%d{dd-MM-yyyy}#%i.log"> > <PatternLayout pattern="[%d{yyyy-MM-dd > HH:mm:ss}][%t][%p] %m%n" /> > <Policies> > <TimeBasedTriggeringPolicy /> > <SizeBasedTriggeringPolicy size="100 MB" /> > </Policies> > <DefaultRolloverStrategy max="50" /> > </RollingFile> > <!-- Spring jdbc Appender --> > <RollingFile name="springjdbcAppender" > > fileName="${sys:catalina.base}/logs/xvx/org.springframework.jdbc.log" > > filePattern="${sys:catalina.base}/logs/xvx/org.springframework.jdbc-%d{dd-MM-yyyy}#%i.log"> > <PatternLayout pattern="[%d{yyyy-MM-dd > HH:mm:ss}][%t][%p] %m%n" /> > <Policies> > <TimeBasedTriggeringPolicy /> > <SizeBasedTriggeringPolicy size="100 MB" /> > </Policies> > <DefaultRolloverStrategy max="50" /> > </RollingFile> > </Appenders> > <Loggers> > <!-- 3rdparty Loggers --> > <Logger name="com.github.isrsal.logging.LoggingFilter" > level="DEBUG" additivity="false"> > <AppenderRef ref="xxxRequestResponseAppender" /> > </Logger> > <Logger name="connector.timeLogger" level="OFF" > additivity="false"> > <AppenderRef ref="xxxTimeAppender" /> > </Logger> > <Logger name="org.springframework" level="OFF" > additivity="false"> > <AppenderRef ref="springFrameworkAppender" /> > </Logger> > <Logger name="org.springframework.jdbc" level="ALL" > additivity="false"> > <AppenderRef ref="springjdbcAppender" /> > </Logger> > <!-- Root Logger --> > <Root level="ALL"> > <AppenderRef ref="xxxRootAppender" /> > </Root> > </Loggers> > </Configuration> > {code} > we are using slf4j 1.7.7 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org