Can the size of the log4j log file hamper performance in any way?

Solution Verified - Updated -

Environment

  • Fuse ESB 4.x
  • Fuse Message Broker 5.X

Issue

Can the size of the log4j log file hamper performance in any way?

Resolution

There are no known performance issue that has been encountered. However if you like you may use the RollingFileAppender to automatically manage the log file and break it up into smaller and more manageable files. For example this would configure for either ActiveMQ or ServiceMix 4.x 10 log files that can be at most 10MB, older log files will be deleted as necessary:

log4j.appender.out=org.apache.log4j.RollingFileAppender
log4j.appender.out.file=${activemq.base}/data/activemq.log
log4j.appender.out.maxFileSize=10MB
log4j.appender.out.maxBackupIndex=10

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments