Saturday, March 14, 2009

How to configure rotating log files in Oracle Application Server?

Most of the log files of an out of the box installation of Oracle Application Server are configured to be rotated i.e when a log file reaches a particular size, it is copied and a new log files gets created. But one log file called standard output / standard err(print output to console) ,is not configured to be rotated by default. The log file is available under $ORACLE_HOME/opmn/logs.

How to make this log file rotatable?
In java command line options of the OC4J, provide the following 
-Dstdstream.filesize=20 

The above configuration, rotates the respective log file every 20 MB. 

1 comment: