uwsgi性能调忧

编程入门 行业动态 更新时间:2024-10-05 19:09:08

uwsgi<a href=https://www.elefans.com/category/jswz/34/1771266.html style=性能调忧"/>

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)


[bre@dmp-1 ~]$ ab -n 1000 -c 200 http:///Mapping.do?

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性能调忧

本文发布于:2024-02-14 13:20:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1763497.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:性能   uwsgi

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!