Data Source log File is not Rotated on WebLogic 12.2.1.2

(Doc ID 2388662.1)

Last updated on APRIL 27, 2018

Applies to:

Oracle WebLogic Server - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

After configuring data source log file rotation, The log file will continue to grow unbounded. 

After restarting MS the file is still not rotated. Even worse, the existing data source log file is not written to after restart.

<data-source>
<data-source-log-file>
<file-name>logs/ds.log</file-name>
<rotation-type>bySize</rotation-type>
<number-of-files-limited>true</number-of-files-limited>
<file-count>7</file-count>
<file-min-size>10</file-min-size>
<rotate-log-on-startup>true</rotate-log-on-startup>
</data-source-log-file>
</data-source>

The file size is larger than the 10k configured yet never gets rotated:

-rwxrwx---+ 1 weblogic None 42K Sep 7 23:14 ds.log

 

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms