Try Playground
Show / Hide Table of Contents

Simulate Distributed Cache Usage

To simulate the usage of your created cache, NCache provides the Test-Stress option. The Test-Stress mechanism simulates a heavy transactional load on your distributed cache(s). You can then view distributed cache counters provided by NCache either through NCache Statistics or the PerfMon tool.

Test Stress Through the NCache Management Center

Follow the steps mentioned below to simulate your cache usage under stress through the NCache Management Center:

  • Launch the NCache Management Center by browsing http://localhost:8251 or <server-ip>:8251 for Windows and Linux.

  • From the left navigation bar, click on Clustered Caches.

NCache Web Manager Clustered Caches

  • Select your cache and click on Test-Stress Button.

  • Once you have clicked the Test-Stress button, you will be prompted with a dropdown menu where you will have to specify the time for the test. After selecting the time, click on the start button.

  • Once you have clicked the Test-Stress button, you will be prompted with a dropdown menu where you will have to specify the time for the test stress. After selecting the time, click on the start button.

Test Stress Drop Down Menu

View Simulation Through NCache Statistics

  • Go to the statistics page by clicking Statistics Button against your selected cache in the NCache Management Center.

  • You can view that the data is being added to the cache through the counters shown on the screen. After the set expiration interval has elapsed, the counters will show data being removed from the cache.

NCache Stats Counter Dashboard

Test Stress through NCache PowerShell Cmdlet

You can quickly test the performance of the cache under stress using the Test-Stress cmdlet. This command generates a heavy transactional load on a specified cache by feeding it sample data automatically. The following example demonstrates how to use the Test-Stress command in the PowerShell:

Test-Stress –CacheName demoCache

This command starts making cache calls to the cache servers as Test-Stress simulates a transactional load on the specified cache.

See Also

Create Cache
Create Distributed Lucene with Persistence Cache

Back to top Copyright © 2017 Alachisoft