性能调忧"/>
uwsgi性能调忧
摘要:调大uwsgi配置中 listen=1024的数目是提高并发能力最有效的办法。第二种方法是调大processes数目
发现总是超时报警
1 使用ab确定网络具体征况
[bre@dmp-1 ~]$ ab -n 1000 -c 100 http:///Mapping.do?Concurrency Level: 100
Time taken for tests: 1.040 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 486000 bytes
HTML transferred: 0 bytes
Requests per second: 961.42 [#/sec] (mean)
Time per request: 104.013 [ms] (mean)
Time per request: 1.040 [ms] (mean, across all concurrent requests)
Transfer rate: 456.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 2
Processing: 3 28 61.9 25 1005
Waiting: 3 28 61.9 25 1005
Total: 5 28 61.9 25 1006
Percentage of the requests served within a certain time (ms)
50% 25
66% 26
75% 26
80% 26
90% 27
95% 27
98% 29
99% 31
100% 1006 (longest request)
Concurrency Level: 200
Time taken for tests: 3.022 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 909
Total transferred: 463432 bytes
HTML transferred: 0 bytes
Requests per second: 330.91 [#/sec] (mean)
Time per request: 604.403 [ms] (mean)
Time per request: 3.022 [ms] (mean, across all concurrent requests)
Transfer rate: 149.76 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.2 0 4
Processing: 6 274 791.9 28 3015
Waiting: 6 274 791.9 28 3015
Total: 10 275 792.5 29 3018
Percentage
更多推荐
uwsgi性能调忧
发布评论