[ https://issues.apache.org/jira/browse/LOG4J2-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15823531#comment-15823531 ]
ASF subversion and git services commented on LOG4J2-1032: --------------------------------------------------------- Commit b331da4ad6a49df4363b2056cb8d9e8efc4a2ce0 in logging-log4j2's branch refs/heads/master from [~ralph.go...@dslextreme.com] [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=b331da4 ] LOG4J2-1032 - Make DefaultRolloverStrategy more efficent when renaming files. Add nomax option to the fileIndex attribute. > 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 > > 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