Rotate weblogic and managed server log file to a folder in a different mount point/file system.
In this Document
APPLIES TO:Oracle WebLogic Server - Version 10.0 and laterGeneric Linux Oracle Solaris on SPARC (32-bit) Oracle Solaris on SPARC (64-bit) Oracle Solaris on x86 (32-bit) Oracle Solaris on x86-64 (64-bit) SYMPTOMS
One has a WebLogic Server (WLS) log rotation configuration in place such that current log is written to one directory and rotation is done to other directory. However it has been observed that rotation directory does not have the rotated files.
Consider following WLS server log configuration for WLS instance "AdminServer" (a snippet from DOMAIN_HOME/config/config.xml):
<server>
<name>AdminServer</name> <log> <file-name>/u01/current/logs/AdminServer/AdminServer.log</file-name> <file-min-size>5</file-min-size> <rotate-log-on-startup>true</rotate-log-on-startup> <log-file-rotation-dir>/u02/archive/logs/AdminServer</log-file-rotation-dir> <memory-buffer-severity>Debug</memory-buffer-severity> </log>
In this configuration, one might see that once AdminServer.log reaches 5KB, WLS seems to create a new log in"/u01/current/logs/AdminServer" however the rotated log file which is supposed to be saved into /u02/archive/logs/AdminServer is not there.
You might look into standard out file with an intention to see what happened, however there might be no trace of any error there.
CAUSE
One might be hitting a known limitation of JDK and OS (click here) if current log file exists on one filesystem and the log rotation directory on another filesystem.
To verify this, there are two ways:
SOLUTION
Place the current log and the rotation directory on the same file system.
|
No comments:
Post a Comment