title: Log4J2 SizeBasedT​riggeringP​olicy not working properly
body: <p>I use the latest build log4j2 beta9, it seem the RollingRandomAccessFile and RollingRandomAccessFile not working properly</p>
  
  <p>Yes, it create archive after reach the specific file size limit but after that, log file's size keep increase (i.e not roll over) and that is only one achieve create even I had set the max to 3.   </p>
  
  <p>Here my appender setting for log4j2.xml.  Any help?</p>
  
  <pre><code>&lt;RollingRandomAccessFile name="RollingRandomAccessFile" fileName="d:/logs/mylog.log"
   filePattern="d:/logs/$${date:yyyy-MM}/idmIntg-%d{MM-dd-yyyy}-%i.log.gz"&gt;
    &lt;PatternLayout&gt;
      &lt;Pattern&gt;%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n&lt;/Pattern&gt;
    &lt;/PatternLayout&gt;
    &lt;Policies&gt;
      &lt;SizeBasedTriggeringPolicy size="20 KB"/&gt;
    &lt;/Policies&gt;
    &lt;DefaultRolloverStrategy max="3"/&gt;
  &lt;/RollingRandomAccessFile&gt;
  </code></pre>