Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stress/load testing in magento

I am creating a ecommerce website in magento. I want to use stress testing on my website to see How robust is my website and how much load it can bear. I have gone through a lot of stuff for that but I could not find something satisfactory. Please suggest me some tools for doing that and can i do it on localhost?

like image 219
MJQ Avatar asked Jan 01 '13 10:01

MJQ


People also ask

What is stress testing in Magento?

Magento Load Testing A stress test is similar to a load test, but the difference is that instead of increasing the load to a certain amount and then monitoring the behavior, you push the site to its breaking point. In other words, you incrementally increase the load above the expected maximum.

What is performance testing in Magento?

From the screenshot above, you can see that performance testing measures how many resources (CPU, RAM, time) are used by Magento for a given store, user action, or other parameters. Performance testing can be divided into two groups: load testing and stress testing.

What are product and code quality tests in Magento?

Product quality tests are a way to verify that site visitors, support staff, administrators, and other end users get the results they expect when interacting with the Magento site. Code quality tests are used by developers and Solution Architects. These tests guarantee that the site can be modified, customized, and scaled with little to no problem.

What is the difference between load and stress testing?

A stress test is similar to a load test, but the difference is that instead of increasing the load to a certain amount and then monitoring the behavior, you push the site to its breaking point. In other words, you incrementally increase the load above the expected maximum.


1 Answers

You can use jmeter, apache bench, siege to load test your website.

Try increasing the load on your server with these tools. And find the maximum number of clients that your application can handle. Then increase more load to see how more it can take before it breaks.

Recently I did some load testing on a streaming server with flazr. Server were working fine till 400 concurrent connection. After 400 it starts to become slow and when its 450 it breaks. So 400 was the maximum number of connection it supports. But if its near 450 I'll try to decrease load to save my server or increase the hardware capacity like RAM, CPU, NIC

Some links might be usefull

  1. Bench-marking site performance with apachebench
  2. Simple is Hard a siege is being used by Rasmus Lerdorf on a Talk
  3. SQA.SE answer on where can I find good jmeter tutorials
like image 101
Shiplu Mokaddim Avatar answered Oct 03 '22 08:10

Shiplu Mokaddim