The Windows Server AppFabric cache uses an eviction policy to regulate the amount of memory used by cached data. We have seen earlier in this chapter that eviction occurs when the cache host is running low on memory and memory consumption goes beyond High Watermark (HWM). In this recipe, we will see how to identify if the cache host is continuously running in eviction state.
We will start with evaluating performance counters to identify the state of the cache host:
1. Use the following performance counters (using
perfmon.exe)
available underAppFabric Caching:Host
to check the increase in the number of eviction runs:Total Eviction Runs
Total Data Size Bytes
Total Evicted Objects
Total Memory Evicted
Note
The eviction counters mentioned previously are cumulative and the increase in these numbers should be noted over a period of time.
2. Look for
Event Id 118
and115
in Windows Server AppFabric's Operational log using Windows Event Viewer.3. Once the...