Use webbench for website stress testing

Source: Internet
Author: User

Refer to the following two articlesArticleAnd take the following notes:

Http://s135.com/post/288/

Http://down.chinaz.com/server/201202/1671_1.htm

 

# Wget HTTP:// Home. tiscali. cz /~ Cz210552/distfiles/webbench-1.5.tar.gz

# Tar ZxvfWebbench-1.5.Tar.GZ

# CdWebbench-1.5

# Make &&Make install

The CC: no command error may occur during make. You need to install GCC.

# Apt-Get install gcc

 

After installation is complete, perform the test:

# Webbench -C200 -T60HTTP:// Down.chinaz.com/index.php

Parameter explanation:-C indicates the number of concurrencies, and-T indicates the time (seconds)

When the concurrency is 2000, the website displays "502 Bad Gateway", which means that the Web server can no longer process user access requests.

Summary:

1. stress testing should be conducted before the product is launched, rather than after the launch.

2. Try to perform the test across the public network instead of the Intranet.

3. The concurrency during testing should increase gradually from small to small. For example, when the concurrency is 100, check the website load and whether the website is opened or not, what is concurrency 200, what is concurrency when the website is opened slowly, and what is concurrency when the website cannot be opened

4. unit tests should be conducted as much as possible. For example, B2C websites can focus on shopping carts and promotion pages, because these pages account for a large proportion of visits to the entire website.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.