Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19890

Fix JSF UI timer debug logs activation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.2
    • Fix Version/s: 7.10-HF12, 8.3
    • Component/s: Actions & Filters

      Description

      Since NXP-18951, the ActionService can show slow actions/filters rendering, using a custom property stating the number of seconds threshold.

      This custom property is not retrieved properly from configurations held by the nxserver/config folder, because the static field is initialized before deployment of the configuration files.

      Also, the ActionService, FaceletDebugHandler and JSFDebugPhaseListener are not using consistent log levels for debug (some are using the INFO level).

      Corresponding sample log4j configuration:

        <category name="org.nuxeo.ecm.platform.ui.web.util.FaceletDebugTracer">
          <priority value="DEBUG" />
        </category>
        <category name="org.nuxeo.ecm.platform.actions.ActionService">
          <priority value="DEBUG" />
        </category>
        <category name="org.nuxeo.ecm.platform.ui.web.rest.JSFDebugPhaseListener">
          <priority value="DEBUG" />
        </category>
      

      See also attached sample runtime configuration enable-jsf-debug-config.xml that can be placed in nxserver/config to configure threshold times for ActionService and FaceletDebugTracer:

      <?xml version="1.0"?>
      <component name="org.nuxeo.ecm.platform.enable.jsf.debug.config">
      
        <require>org.nuxeo.ecm.platform.ui.web.configuration.default</require>
        <require>org.nuxeo.ecm.platform.actions.ActionService.properties</require>
      
        <extension target="org.nuxeo.runtime.ConfigurationService"
          point="configuration">
          <property name="nuxeo.jsf.debug.log_min_duration_ms">20</property>
          <property name="nuxeo.actions.debug.log_min_duration_ms">5</property>
        </extension>
      
      </component>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.