Why log file size exceeding maxFileSize

Solution Unverified - Updated -

Issue

  • Log file size (100MB) exceeding maxFileSize (1MB) specified in "$AMQ_HOME/etc/org.ops4j.pax.logging.cfg" file. We are trying to create a new file appender with WARN only using below configuration.
# Error File appender
log4j.appender.out=org.apache.log4j.RollingFileAppender
log4j.appender.out.name=errrolog
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
log4j.appender.out.file=${karaf.data}/log/amq.log
log4j.appender.out.append=true
log4j.appender.out.maxFileSize=1MB
log4j.appender.out.maxBackupIndex=10
log4j.appender.out.threshold=WARN

Environment

  • Red Hat JBoss A-MQ
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content