Edit the WebSphere Commerce configuration file to set the
level of caching performed on user traffic data. The default number
of URLs in the cache is 20. 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. User traffic
data is used in some operational reports.
Procedure
- Open the WebSphere
Commerce configuration file.
- 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. The default setting of 20, for example, updates 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>
- 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>
- Start and stop your WebSphere
Commerce instance.