Hide Forgot
++ This bug is a clone of bug 778690 ++ Affects: Compatibility/Configuration Date of First Response: 2009-02-05 09:53:24 project_key: SOA Even though log4j is configured to log only INFO level in file appender in production configuration, internally it sends all levels' logging to the appender. Code blocks in if (log.isDebugEnabled()) { ... } are still being executed. This results in every message having stack trace in it: (message.getBody().add(setPayloadLocation + "-set-stack", new Exception("setPayload stack trace for '" + setPayloadLocation + "'.")); To avoid this, setting a category for org.jboss.soa, or even for org.jboss is useful. I suggest: <category name="org.jboss"> <priority value="INFO" /> </category> which brings 7% performance gain.
Fixed in revisions 2612 (trunk), 2613 (4.2.0 branch) and 2614 (4.3 branch) of: build-tools/resource/conf-skeleton/jboss-log4j-production.xml Commit message: Uncomment INFO priority for org.jboss category. Fixes JIRA SOA-1158.
Release Note SOA-1158 The performance of log4j in the production server configuration has been improved. The default configuration now only sends those log messages of priority INFO or higher to the log appender instead of sending all messages.
Verified fixed in 4.3CP01 CR2 - embedded server, production profile: <!-- Limit JBoss categories --> <category name="org.jboss"> <priority value="INFO"/> </category>