domain.log File Growing Fast – Filesystem Full

AshokTechnical TipsLeave a Comment

Are you running out of disk space because your domain.log is growing too fast?

  1. Open BPEL_HOME/domains//config/log4j-config.xml
  2. Change the appender class from com.collaxa.cube.util.CXRollingFileAppender to org.apache.log4j.RollingFileAppender
  3. Add a new parameter:
    1
    
    <param value="50MB" name="MaxFileSize" />

Here is an example of what the file should look like in the end:

1
2
3
4
5
6
7
<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

Leave a Reply

Your email address will not be published. Required fields are marked *