网站压力检测
ab -c 10 -n 100 http://192.168.80.85/index.html 十个用户每个用户发100个请求
Server Hostname: 192.168.80.85
Server Port: 80
Document Path: /index.html
Document Length: 8 bytes
Concurrency Level: 10 十个用户请求
Time taken for tests: 0.026 seconds
Complete requests: 100 每个用户100个请求
Failed requests: 0
Write errors: 0
Total transferred: 27573 bytes
HTML transferred: 808 bytes
Requests per second: 3858.92 [#/sec] (mean) 共处了 3858.92
Time per request: 2.591 [ms] (mean)
Time per request: 0.259 [ms] (mean, across all concurrent requests) 处理时间 0.259
Transfer rate: 1039.08 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.2 1 2
Processing: 1 1 0.3 1 2
Waiting: 0 1 0.3 1 2
Total: 2 2 0.2 2 2
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 2
80% 2
90% 2
95% 2
98% 2
99% 2
100% 2 (longest request)
uptime 查看cpu
top 查看硬件使用情况
vmstat 查看IO 和cpu内存
yum install vmstat -y
vnstat 查看网卡流量
yum install vnstat -y
vnstat -l -i eth0
iostat查看磁盘
yum install sysstat
iostat -x -k
iostat
查看内存
feer -m
查看CPU
sar -u 1 2
查看硬盘
sar -d 1 2