[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uwsgi
Subject:    [uWSGI] server socket listen backlog 2048
From:       crucialfelix () gmail ! com (felix)
Date:       2011-05-15 16:20:51
Message-ID: BANLkTikgeqFHDVcmUvxyf9tekw+KFX-vyQ () mail ! gmail ! com
[Download RAW message or body]

Found it.  net.core.somaxconn was at default 128

sudo sysctl -w net.core.somaxconn=1024

AND

reload nginx
restart uwsgi procs


now I can run -n 200 and even -n 500 with no socket errors

Concurrency Level:      500
Time taken for tests:   24.308 seconds
Complete requests:      2000
Failed requests:        0
Write errors:           0
Requests per second:    82.28 [#/sec] (mean)
Time per request:       6077.046 [ms] (mean)
Time per request:       12.154 [ms] (mean, across all concurrent requests)


and now it fails at -n 800 due to:

2011/05/15 12:12:47 [crit] 2391#0: *320685 open()
"/usr/local/apache2/conf/.mypasswds" failed (24: Too many open files),
client: 174.143.146.14, server: beta.nestseekers.com, request: "GET /
HTTP/1.0", host: "beta.nestseekers.com"

which is acceptable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20110515/eeb6ea6c/attachment.html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic