Configure caching to capture user traffic data

Edit the WebSphere Commerce configuration file to set the level of caching performed on user traffic data.

  1. Open the WebSphere Commerce configuration file.

  2. Find a code fragment similar to the one below. In the example fragment, the element in bold controls the caching level of user traffic logging. Setting it to 1 will ensure that every time a URL is requested, the USRTRAFFIC table is written to. Setting it to 20, for example, will cause a write to the USRTRAFFIC table after 20 URLs have been requested. The lower this number is, the more likely it is to affect performance.
    <LogSystem name="Log System">
       <messageLog display="false" notification="false"
           
    notificationClassName="com.ibm.commerce.messaging.ras.ErrorNotificationHandler"
    />
       <activityLog display="false">
          
    <userTraffic cacheSize="20" />
          <accessLogging cacheSize="32" logAllRequests="false" />
       </activityLog>
    </LogSystem>
    
    
    

  3. In addition, the value has to be set to true in the <start> element of the following sample fragment in your configuration file:
    <component
    compClassName="com.ibm.commerce.event.usertraffic.UserTrafficEventListener"
         enable="true" name="UserTrafficEventListener">
       <property display="false">
          <start enabled="true" />
       </property>
      </component>
    
    
    

  4. Start and stop your WebSphere Commerce instance.

 

Related Concepts


Operational reports