Tutorials on how to set up JMeter to load test a deployed ASP. NET web app?



  • I'm having trouble finding a decent tutorial on how to set up JMeter to load test a deployed ASP.NET web app? Does it have to run on localhost or can it be used to test a deployed app? I would like to test the performance of the deployed app during different times of the time and test at what times is the app most stressed or slow. Also, how long does it take to retrieve data from the database?



  • From server side perspective if you want realistic numbers your application needs to be deployed to environment close to production. From JMeter side you need to consider the following: Correlation. ASP.NET web applications use dynamic request parameters like VIEWSTATE and EVENTVALIDATION. You'll need to extract them from previous response and add to next one. JMeter provides a number of Post Processors to extract these values from response and convert them to JMeter Variables. The most commonly used are Regular Expression Extractor and XPath Extractor Create realistic load. See How to make JMeter behave more like a real browser guide on how to properly configure your JMeter instance. Load patterns. Consider reasonable Thread Count and Ramp-up period (50 concurrent threads != 50 real concurrent users), use Timers to simulate think time. If you need to test exact load, like X requests per second you'll need to use Constant Throughput Timer Hope this helps, D.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2