windowsasp.net-corecpu-usagestress-testingthroughput

Why my application does not consume CPU and RAM?


I have a solution in asp.net-core 3.1. When I run stress testing, it consumes no more than 20-30% cpu. I have tried increasing worker processes but still it gives a constant throughput and does not consume resources. Any suggestion on what I am doing wrong here?

System Specs:

OS: Windows server 2012 CPU: 16 cores RAM: 64 GB


Solution

  • I have faced the same scenario before and Microsoft Application Insights was so helpful. It will show you

    1. Actual Count of Active users
    2. Memory / Cpu Usage
    3. The Most Important One is the dependency tracking: https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-dependencies.

    So if you have any dependency call for example http/database call having any performance issue it will appear. For JMeter i tried to run the stress test from my local machine and found that i set for example 50 concurrent users but actually the ones hitting the application is only 20. So we needed to run the Jmeter from multiple machines.

    Another Idea also you can turn off caching if you are caching the results so you are sure that your are always hitting the dependencies.