Browse Cache Statistics
NCache allows you to monitor your cache using different performance counters for different cache stores. You can use the Performance Monitor to view performance data by configuring different counters for your cache.
This section provides the steps to monitor counters for a Distributed Cache. You can browse and monitor NCache Counters for caches with different store types by following the same steps.
Make sure NCache Service is started. If it is not started, do the following:
In PowerShell, enter the following command:
Start-Service -Name NCacheSvc
For .NET Core, make sure that you run NCache Service as an administrator. Here are the steps to do so:
- Open the Services Window and look for NCache in the list.
- Right click on NCacheSvc from the list and choose Properties.
- Go to the Log On tab and click on the Browse button.
- In the object name field, type Administrator and click on the Check Names button.
- It will pick the appropriate Administrator, then click OK.
- Now, set a Password and click OK.
- Right click on the NCache Service and choose the Restart option. Now your service will start running as an administrator.
NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251on Windows and Linux.
In the left navigation bar, click on Local Caches or Clustered Caches based on your requirements. This opens up a new page at
<server-ip>:8251/. The page shows any existing local or clustered caches and additional details like the Server and Server Platform.
- Select the cache. For this you may click on the "..." button against the cache name and click on Show statistics from the available options. Or you may click on the from the toolbar for which you will have to select the checkbox against the cache name.
- A Statistics window will open showing the cache statistics.
- In order to add counters for monitoring, click on Add Counter. Select the node you want to add a counter for.
- From the category list, select NCache - it shows all the present caches on the server node provided.
Select the instance of the cache that needs to be monitored. A list of counters is displayed.
Select the counters from the list while holding down ctrl and click on Add Counters. It shows a list of selected counters.