Danny Gloudemans
Danny Gloudemans

Reputation: 2697

JBoss PeriodicSizeRotatingFileHandler duplicates current log file until disk runs out of space

Sometimes we have the issue that the log rotate will duplicate the current log file until the disk runs out of space. We don't see any issues in the log files and we were wondering how this could happen as we are using the standard PeriodicSizeRotatingFileHandler from JBoss.

Server version: Windows Web Server 2008 R2

JBoss EAP version: 6.4.17

Please find below a part of our standalone.xml

<subsystem xmlns="urn:jboss:domain:logging:1.5">
<custom-handler name="FILE" class="org.jboss.logmanager.handlers.PeriodicSizeRotatingFileHandler" module="org.jboss.logmanager">
    <level name="INFO"/>
    <formatter>
        <pattern-formatter pattern="%d{yyyyMMdd HH:mm:ss,SSS} %-5p [%c{1}] (%t) %s%E [MDC:ibizaId=%X{ibizaId}]%n"/>
    </formatter>
    <properties>
        <property name="append" value="true"/>
        <property name="rotateSize" value="200000000"/>
        <property name="maxBackupIndex" value="1000"/>
        <property name="suffix" value=".yyyy-MM-dd"/>
        <property name="fileName" value="${jboss.server.log.dir}/server.log"/>
    </properties>
</custom-handler>
</subsystem>

Unfortunately I couldn't find anything related to this issue on Google.

Upvotes: 0

Views: 201

Answers (0)

Related Questions