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 :
[INFO] monitor - render() on menu-public executed in 47 msSee How to activate logs