In this article, I will show you how to configure JMeter for load testing a microservices web application.
You can find the JMeter installation steps here: How to install and run Apache JMeter in 8 easy steps. Open the JMeter application and import the jmx file downloaded from Github. You can find the jmx file uploaded in Github here: https://github.com/MalarvizhiK/JMeterFile/
Login to your microservices web application and capture the JSESSIONID and LtpaToken2 from the Developer Tools window as shown below:
Enter the JSESSIONID and LtpaToken2 in JMeter under 'HTTP Cookie Manager' as shown below:
Configure the HTTP Header Manager as shown below :
Configure the Thread Group as shown below:
Configure the HTTP Request parameters of the transaction which you want to load test as shown below:
Run the Start button. The request is getting invoked for 100 threads. You can find the results under "View Results Tree" as shown below:
Ensure that Prometheus and Grafana are running, then you can view the Bytes Sent and Received of the microservices as shown below:
Note: Ensure that the metrics are getting collected for your microservices in Prometheus.
For more information regarding Prometheus and Grafana, please read: Introduction to Istio Service mesh