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.