Monitor Caches in PerfMon
Both local and clustered caches publish performance statistics using Windows Performance Counters. NCache also publishes performance statistics of the cache from the client's perspective. In this step, you will verify that the Stress Test Tool that you ran in the previous step is making cache calls successfully.
Prerequisite
For .NET, make sure the NCache Service (NCacheSvc) is started. If it is not started, type the following command in PowerShell (run as admin):
Start-Service -Name NCacheSvc
View Cache Statistics
To view the statistics of a running cache, type PerfMon in the Windows search bar.
Performance Monitor appears in the search result. Open Performance Monitor.
Click on the Performance Monitor in the Monitoring tool in the left pane. The Performance Monitor window opens up in the right pane.
Click on the Add (+) button. This opens the Add Counters pop-up window.
By default, it shows the Performance Counter categories on the local system. If the cache is running on a different computer, type the computer name or IP prepended by “\\” e.g., \\20.200.20.220 or \\TEST.
Scroll up in the Performance Categories window to find and select NCache.
Although, NCache publishes a lot of statistics, you can select the following basic counters to monitor the cache:
Additions/sec: This shows the number of new cache items being added per second.
Count: This shows the number of items present in the cache
Expirations/sec: This shows the number of items expired per second.
Fetches/sec: This shows the number of cache items read by your application from the cache.
Request/sec: This shows the number of requests received (meaning cache commands like add, get, insert, remove etc.) from all clients to this cache server.
Updates/sec: This shows the number of the existing cache items updated per second.
Every cache publishes its statistics under its cache name. Select the cache you want to monitor and click the Add button at the bottom.
Click OK.
Change graph type from Line to Report.
You can now verify that the Stress Test Tool that you ran in the previous step is making 100s of requests per second to this cache.
See Also
Create a Cache
Simulate Cache Usage
Use NCache from .NET Application
Use NCache for ASP.NET Sessions