Welcome to the IBM Websphere Commerce Hub

Welcome to the IBM Websphere Commerce Hub

Come join me in my journey to explore the various features and capabilities of IBM Websphere Commerce and understand how retailers can benefit from its really cool out-of-box functionality.

Wednesday, March 14, 2012

Capturing User Traffic

User traffic data is used in some operational reports. The user traffic details in Websphere Commerce is captured in the Out of the box table USRTRAFFIC and the same can be enabled through simple configuration changes in the Websphere Commerce configuration file wc-server.xml.
We need to edit the WebSphere Commerce configuration file to set the level of caching performed on user traffic data.

Open wc-server.xml and locate the following the sample fragment. Set the value in the <start> element to true -
     enable="true" name="UserTrafficEventListener">
   <property display="false">
      <start enabled="true" />

Performance Considerations
The default number of URLs in the cache is 20 which means updates are made to the USRTRAFFIC table after 20 URLs have been requested. If this number is too low for your site, for example, if your site is very busy and you are concerned about performance impacts, you can increase the cache size.
You need to make decision on what is the optimum number of dafault URLs in the cache should be and update the same in the wc-server.xml. Locate the following code fragment and change the value highlighted in bold.

<LogSystem name="Log System">
   <messageLog display="false" notification="false"
   <activityLog display="false">
<userTraffic cacheSize="20" />
      <accessLogging cacheSize="32" logAllRequests="false" />

Restart the server post making the changes.

No comments:

Post a Comment