title: Log4j not compressing correctly
body: <p>Below is the log4j.properties file</p>
  
  <pre><code># Root logger option
  log4j.rootLogger=DEBUG, file
  
  
      # Redirect log messages to a log file
      log4j.appender.file=org.apache.log4j.rolling.RollingFileAppender
      log4j.appender.file.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy  
      log4j.appender.file.rollingPolicy.ActiveFileName=${catalina.home}/logs/app.log  
      log4j.appender.file.rollingPolicy.FileNamePattern=${catalina.home}/logs/app-.%d{yyyyMMdd-HH}.log.gz  
      log4j.appender.file.layout=org.apache.log4j.PatternLayout
      log4j.appender.file.MaxFileSize=10MB
      log4j.appender.file.MaxBackupIndex=10
      log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%
  </code></pre>
  
  <p>The file is getting compressed but not at 10MB. After compression the filesize is 14MB...Something seems weird</p>