5000并发下出现502
修改nginx中的
worker_connections 40960;
原来是4096 我多加了一个零,再测!!
[root@localhost ~]# webbench -c 5000 -t 200 http://192.168.1.77/php/php.php?act=phpinfo
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.1.77/php/php.php?act=phpinfo
5000 clients, running 200 sec.
Speed=23638 pages/min, -9447842 bytes/sec.
Requests: 78736 susceed, 59 failed.
[root@localhost ~]#
有时候还是会出现502
把
worker_connections 40960;
修改成
worker_connections 8096;
又测
[root@localhost ~]# webbench -c 5000 -t 30 http://192.168.1.77/php/php.php?act=phpinfo
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.1.77/php/php.php?act=phpinfo
5000 clients, running 30 sec.
Speed=33162 pages/min, 15283733 bytes/sec.
Requests: 16581 susceed, 0 failed.
[root@localhost ~]#
[ 本帖最后由 小猴 于 2009-5-27 03:00 编辑 ] |