Web Stress Testing

Source: Internet
Author: User

Use Webbench,webbench on Linux to simulate up to 30,000 concurrent connections to test the load capacity of a website

Http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz


Installation steps:
Tar zxvf webbench-1.5.tar.gz
CD webbench-1.5
Make &&make Install


Stress test:
Webbench-c 500-t http://10.10.8.73/
-C 500 is a concurrent number
-T 30 for continuous time

[Email protected] ~]# netstat-an |grep "Time_wait" |wc-l
27994

The test results show that there are 27,994 time_wait


Optimize the kernel:

Check the current value of NET.IPV4.TCP_TW and change the current value to 1 minutes:
[Email protected] ~]# Sysctl-a|grep NET.IPV4.TCP_TW
Net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_tw_recycle = 0


Vi/etc/sysctl
Add or modify the NET.IPV4.TCP_TW value:
Net.ipv4.tcp_tw_reuse = 1
Net.ipv4.tcp_tw_recycle = 1

Make kernel parameters effective
Sysctl-p


This article is from the "I am a Little bird" blog, please make sure to keep this source http://2242558.blog.51cto.com/2232558/1545339

Web Stress Testing

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.