Are you running out of disk space because your domain.log is growing too fast?
- Open BPEL_HOME/domains//config/log4j-config.xml
- Change the appender class from com.collaxa.cube.util.CXRollingFileAppender to org.apache.log4j.RollingFileAppender
- Add a new parameter:
<param value="50MB" name="MaxFileSize" />
Here is an example of what the file should look like in the end:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender class="org.apache.log4j.RollingFileAppender" name="A1">
<param value="true" name="ImmediateFlush" />
<param value="false" name="Append" />
<param value="D:/soa/product/10.1.3.1/as_1/bpel/domains/default/logs/domain.log" name="File" />
<param value="50MB" name="MaxFileSize" />
<param value="10" name="MaxBackupIndex" />
Notes:
- MaxFileSize will dictate max size for each log file while MaxBackupIndex will dictate the total number of log files that will accumulate (the above settings will yield a maximum of 550MB
- Any new domain will get these values be default, so change their respective log4j-config.xml file
- These changes require a BPEL restart
No comments yet.