Enabling Diagnostic Logs

Enabling Diagnostic Logs

While troubleshooting portal performance issues you may want to know which portlet window takes time to execute on a page. Since version 2.0.3, you can enable log statements do diagnose portlets execution time.

You simply need to configure the log category 'pc.monitor' in DEBUG level.

Exemple :

<component> 
    <key>org.exoplatform.services.log.LogConfigurationInitializer</key> 
    <type>org.exoplatform.services.log.LogConfigurationInitializer</type> 
   ...
      <properties-param> 
        <name>properties</name> 
        ...
        <property name="org.apache.commons.logging.simplelog.log.pc.monitor" value="debug"/>         
        ...
  </component>



Each portlet lifeCycle method such as render(), processAction(), processEvent() and serveResource() will then be monitored and its execution time will be logged such as :

&#91;INFO&#93; monitor - render() on menu-public executed in 47 ms



See How to activate logs

Tags:
Created by Patrice Lamarque on 09/29/2008
Last modified by Dénarié Romain on 06/18/2009

Products

generated on Thu Sep 02 15:48:08 UTC 2010

eXo Optional Modules

eXo Core Foundations


Copyright (c) 2000-2010. All Rights Reserved - eXo platform SAS
2.4.30451