How to put stress on the memory of an Azure App Service during a load test.

朱 世忠 0 Reputation points
2023-11-29T01:26:26.54+00:00

Background:

A warning rule is set for an Azure App Service.  

Warning Rule: Sends an email if the memory usage exceeds an average of 90% within 15 minutes.

Objective:

Confirm whether the warning rule works correctly: Verify if an alert email is received when the memory usage of the App Service exceeds an average of 90% within 15 minutes.

Testing Approach:

Use JMeter with 500 threads to simulate load by calling multiple different App Service APIs. The goal is to stress the system to the point where the memory usage averages over 90% within a 15-minute period. The APIs being used include search API, file upload API, information retrieval API, etc., creating a complex usage scenario.

Test Results:

The App Service's memory usage averages over 80%, but it does not reach 90% (while the CPU usage exceeds 90%). Even increasing JMeter thread count to 1000 does not change the situation.

Question:

Apart from increasing JMeter threads, are there any other methods to consume memory in the App Service?
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,755 questions
Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
58 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,506 Reputation points
    2023-11-29T10:38:47.4966667+00:00

    @Anonymous Thanks for reaching here! You can customize your load test's failure criteria

    Test fail criteria enable you to configure conditions for load test client-side metrics. If a load test run doesn't meet these conditions, the test is considered to fail. Start configuring fail criteria for your load test.

    For example, you can specify that the average response time of requests, or that the percentage of failed requests is above a given threshold. You can add fail criteria to your load test at any time, regardless if it's a quick test or if you uploaded a JMeter script.

    When you run load tests as part of your CI/CD pipeline, you can use test fail criteria to identify performance regressions with an application build.

    See - https://video2.skills-academy.com/en-us/azure/load-testing/tutorial-identify-bottlenecks-azure-portal?tabs=portal

    https://video2.skills-academy.com/en-us/azure/load-testing/concept-load-test-app-service#create-a-load-test-by-uploading-a-jmeter-script

    Let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.