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