Bug 778691 - log4j performance tuning in production config.
Summary: log4j performance tuning in production config.
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: Configuration
Version: 5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.0.0 GA
Assignee: Julian Coleman
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-03 14:25 UTC by Martin Vecera
Modified: 2012-07-13 04:13 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: SOA-1158
Environment:
Last Closed: 2009-02-20 16:52:30 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-1158 0 None None None Never

Description Martin Vecera 2009-02-03 14:25:07 UTC
++ 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.

Comment 1 Julian Coleman 2009-02-05 14:53:24 UTC
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.


Comment 2 Dana Mison 2009-02-19 04:55:14 UTC
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.  

Comment 3 Len DiMaggio 2009-02-20 16:52:30 UTC
Verified fixed in 4.3CP01 CR2 - embedded server, production profile:

   <!-- Limit JBoss categories -->
   <category name="org.jboss">
      <priority value="INFO"/>
   </category>



Note You need to log in before you can comment on or make changes to this bug.