Test-Stress Cache
You can generate a heavy transactional load on a specified cache to monitor NCache performance under stress in a given environment using Test-Stress.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.In the left navigation bar, click on Clustered Caches. This opens up the Clustered Caches page at
<server-ip>:8251/ClusteredCaches/
.
Select your cache and click on .
Once the Test-Stress button is clicked, you will be prompted with a drop-down menu where you will have to specify the time for Test-Stress. After selecting the time, click on the start button.
- Once Test-Stress has started, click on from the toolbar. This will lead you to the statistics page where you will be able to monitor your cache under stress by observing the cache counters.
Note
The default dashboard displays the counters based on your selected cache and its store type. You can monitor NCache Counters for caches with different store types by following the same steps.
Using Command Line Tools
You can also perform a stress test on your cache using the Command Line. This is done using the Test-Stress cmdlet.
Examples
- This command executes
Test-stress
on a cache named demoClusteredCache with default settings.
Test-Stress -CacheName demoClusteredCache
See Also
Set Up Command Line Environment
Export-CacheKeys
Stop-Cache