Nginx+PHP+MySQL真实项目调优实战
调优核心:1.nginx status
Active connections: 2
server accepts handled requests
1132 1132 1351
Reading: 0 Writing: 1 Waiting: 1
2.php phpstatus
max children reached: 0
3.mysql
mysql>show status like '%connect%';
Connection_errors_max_connections
ab高并发压力测试案例:
1.日访问量(PV)高达2000万,500并发持续访问时段: 9:00-21:00(43200秒)
ab -n 500 -c 500 -r 192.168.2.1/app/index.php
2.日访问量(PV)高达4000万,1000并发持续访问时段: 9:00-21:00(43200秒)
ab -n 1000 -c 1000 -r 192.168.2.1/app/index.php
3.日访问量(PV)高达2亿,5000并发持续访问时段: 9:00-21:00(43200秒)
ab -n 5000 -c 5000 -r 192.168.2.1/app/index.php
4.日访问量(PV)高达4亿,10000并发持续访问时段: 9:00-21:00(43200秒)
ab -n 10000 -c 10000 -r 192.168.2.1/app/index.php
5.日访问量(PV)高达6亿,16000并发持续访问时段: 9:00-21:00(43200秒)
ab -n 16000 -c 16000 -r 192.168.2.1/app/index.php
页:
[1]