压力测试工具

yum install httpd-tools 安装ab

ab -c 1000 -n 100000 http://IP:8080/civil

命令运行后查看time_wait  

[root@AY1403111855551257d5Z ~]# netstat -n | awk '/^tcp/{++state[$NF]} END {for(key in state) print key,"\t",state[key]}'

TIME_WAIT 2

CLOSE_WAIT 3

FIN_WAIT1 3

ESTABLISHED 10

CLOSING 3

端口查看

[root@localhost ~]# cat /proc/sys/net/ipv4/ip_local_port_range

3276861000 可以使用端口范围

 

 

你可能感兴趣的:(压力测试)