server.log doesn't rotate in JBoss Fuse Service Works

Solution Unverified - Updated -

Issue

We are running on JBoss Fuse Service Works (FSW) 6.0.0, and we configure size-rotating-file-handler for server.log for JBoss EAP.
But when the size of server.log reaches rotate-size (100MB as in the example code below), sometimes the log file doesn't rotate, there is no new log file generated.
The size-rotating-file-handler configuration in standalone.xml looks like:

<size-rotating-file-handler name="FILE">
    <formatter>
        <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
    </formatter>
    <file relative-to="jboss.server.log.dir" path="server.log"/>
    <rotate-size value="100m"/>
    <max-backup-index value="20"/>
    <append value="false"/>
</size-rotating-file-handler>

Environment

  • Red Hat JBoss Fuse Service Works
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content