<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Performance issue related to logging in JBOSS 5
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/sachi.dash">Sachidananda Dash</a> in <i>Performance Tuning</i> - <a href="http://community.jboss.org/message/568091#568091">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Francesco,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is the configuration of my jboss-log4j.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> <!-- A time/date based rolling appender --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="File" value="${jboss.server.log.dir}/server.log"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="Append" value="true"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <!-- In AS 5.0.x the server log threshold was set by a system</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">           property. In 5.1 and later we are instead using the system</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">           property to set the priority on the root logger (see <root/> below)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="Threshold" value="${jboss.server.log.threshold}"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <!-- Rollover at midnight each day --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="DatePattern" value="'.'yyyy-MM-dd"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <!-- Rollover at the top of each hour</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <layout class="org.apache.log4j.PatternLayout"></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">         <!-- The default pattern: Date Priority [Category] (Thread) Message\n --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">         <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">         <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">         <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">          --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      </layout></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   </appender></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <!-- A size based file rolling appender--></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <appender name="FILE1" class="org.jboss.logging.appender.RollingFileAppender"></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     <param name="File" value="${jboss.server.log.dir}/server.log"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     <param name="Append" value="false"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     <param name="MaxFileSize" value="10MB"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     <param name="MaxBackupIndex" value="3"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     <layout class="org.apache.log4j.PatternLayout"></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">     </layout>         </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   </appender></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <!-- ============================== --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <!-- Append messages to the console --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <!-- ============================== --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="Target" value="System.out"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><param name="Threshold" value="INOF"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <param name="Threshold" value="INFO"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      <layout class="org.apache.log4j.PatternLayout"></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">         <!-- The default pattern: Date Priority [Category] Message\n --></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">      </layout></div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">   </appender></div><div> </div></p><p><p> <!-- A time/date based rolling appender --></p><p>   <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"></p><p>      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/></p><p>      <param name="File" value="${jboss.server.log.dir}/server.log"/></p><p>      <param name="Append" value="true"/></p><p>      <!-- In AS 5.0.x the server log threshold was set by a system</p><p>           property. In 5.1 and later we are instead using the system</p><p>           property to set the priority on the root logger (see <root/> below)</p><p>      <param name="Threshold" value="${jboss.server.log.threshold}"/></p><p>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Rollover at midnight each day --></p><p>      <param name="DatePattern" value="'.'yyyy-MM-dd"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Rollover at the top of each hour</p><p>      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/></p><p>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <layout class="org.apache.log4j.PatternLayout"></p><p>         <!-- The default pattern: Date Priority [Category] (Thread) Message\n --></p><p>         <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>         <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n</p><p>         <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/></p><p>          --></p><p>      </layout></p><p>   </appender></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- A size based file rolling appender--></p><p>   <appender name="FILE1" class="org.jboss.logging.appender.RollingFileAppender"></p><p>     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/></p><p>     <param name="File" value="${jboss.server.log.dir}/server.log"/></p><p>     <param name="Append" value="false"/></p><p>     <param name="MaxFileSize" value="10MB"/></p><p>     <param name="MaxBackupIndex" value="3"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>     <layout class="org.apache.log4j.PatternLayout"></p><p>       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/></p><p>     </layout><span style="white-space: pre;"> </span>    </p><p>   </appender></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ============================== --></p><p>   <!-- Append messages to the console --></p><p>   <!-- ============================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"></p><p>      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/></p><p>      <param name="Target" value="System.out"/></p><p><param name="Threshold" value="INOF"/></p><p>      <param name="Threshold" value="INFO"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <layout class="org.apache.log4j.PatternLayout"></p><p>         <!-- The default pattern: Date Priority [Category] Message\n --></p><p>         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/></p><p>      </layout></p><p>   </appender></p><div> </div></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/568091#568091">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Performance Tuning at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>