配置高速缓存以捕获用户流量数据

要设置用户流量数据上执行的高速缓存的级别,请执行以下操作:

  1. 打开 instance_name.xml 文件,它位于以下目录:
    AIXLinuxSun Solaris Operating EnvironmentWC_installdir/instances/instance_name/xml
    WindowsWC_installdir\instances\instance_name\xml
  2. 查找类似于下面内容的代码段。在示例段中,粗体要素控制了用户流量日志的高速缓存级别。将它设置为 1,将确保每次请求 URL时,写入USRTRAFFIC 表。例如,将它设置为 20,将引起请求 20 个 URL 之后,写入 USRTRAFFIC 表。此数值越低,越有可能影响性能。
    <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. 另外,在 instance_name.xml 文件中的以下样本段中的 <start> 元素中,该值必须设置为真:
    <component compClassName="com.ibm.commerce.event.usertraffic.UserTrafficEventListener"
         enable="true" name="UserTrafficEventListener">
       <property display="false">
          <start enabled="true" />
       </property>
      </component>