title: Log4j rolling file size
body: <p>I have a xml log4j configuration file like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt;
      &lt;appender name="CA" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="KTS %5p [%F] - %m%n"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;appender name="EXCEPTION" class="org.apache.log4j.RollingFileAppender"&gt;
          &lt;param name="file" value="C:\\exception.log"/&gt;
          &lt;param name="MaxFileSize" value="20MB"/&gt;
          &lt;param name="MaxBackupIndex" value="5"/&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d{dd-MM-yyyy HH:mm:ss,SSS} KTS %5p [%F] - %m%n"/&gt;
          &lt;/layout&gt;
          &lt;filter class="org.apache.log4j.varia.LevelMatchFilter"&gt; 
              &lt;param name="LevelToMatch" value="ERROR"/&gt; 
              &lt;param name="AcceptOnMatch" value="true"/&gt;                        
          &lt;/filter&gt;
          &lt;filter class="org.apache.log4j.varia.DenyAllFilter"/&gt;
      &lt;/appender&gt;
      &lt;appender name="TIMER" class="org.apache.log4j.RollingFileAppender"&gt;
          &lt;param name="file" value="C:\\timer.log"/&gt;       
          &lt;param name="MaxFileSize" value="20MB"/&gt;
          &lt;param name="MaxBackupIndex" value="5"/&gt;     
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d{dd-MM-yyyy HH:mm:ss,SSS} KTS %5p [%F] - %m%n"/&gt;
          &lt;/layout&gt;
          &lt;filter class="org.apache.log4j.varia.LevelMatchFilter"&gt; 
              &lt;param name="LevelToMatch" value="INFO"/&gt; 
              &lt;param name="AcceptOnMatch" value="true"/&gt;                        
          &lt;/filter&gt;
          &lt;filter class="org.apache.log4j.varia.DenyAllFilter"/&gt;
      &lt;/appender&gt;
      &lt;root&gt;
          &lt;level value="debug"/&gt;
          &lt;appender-ref ref="CA"/&gt;
          &lt;appender-ref ref="TIMER"/&gt;
          &lt;appender-ref ref="EXCEPTION"/&gt;
      &lt;/root&gt;
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>The problem I'm having is that the file's size are passing que established file size...</p>
  
  <p>Any ideas why this might be happening?</p>