Configuring caching to capture user traffic data

To set the level of caching performed on user traffic data, do the following:

  1. Open your instance_name.xml file, located in the following directory:
    AIXLinuxSun Solaris Operating EnvironmentWC_installdir/instances/instance_name/xml
    WindowsWC_installdir\instances\instance_name\xml
  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 that 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 instance_name.xml file:
    <component compClassName="com.ibm.commerce.event.usertraffic.UserTrafficEventListener"
         enable="true" name="UserTrafficEventListener">
       <property display="false">
          <start enabled="true" />
       </property>
      </component>