Closed GoogleCodeExporter closed 9 years ago
Just tried it again with the most recent tip and the test__http unittest passed
fine but
the problem still appears after like 30 seconds or so. I am using libevent-1.4-2
Original comment by justquick
on 19 Mar 2010 at 3:00
This does not seem like a gevent's issue to me. Instead it's a limitation set
by your
operating system.
For example, take a look at these articles, where the author mentions how he
raised
the relevant OS limits:
http://nichol.as/asynchronous-servers-in-python
http://nichol.as/benchmark-of-python-web-servers
Original comment by Denis.Bi...@gmail.com
on 25 Mar 2010 at 8:19
Please re-open this issue. This is not about raising operating system limits
at all -- it s a bug in gevent's libevent usage. The relevant HTTP sockets are
NEVER closed by gevent after they have been used and the other side has closed
the socket as well, therefore this causes a massive fd leak (which is easily
hit in about 2 seconds).
Original comment by dragonf...@gmail.com
on 15 Apr 2011 at 9:27
Original comment by Denis.Bi...@gmail.com
on 15 Apr 2011 at 9:41
can you give an example script that reproduces it?
Original comment by Denis.Bi...@gmail.com
on 15 Apr 2011 at 9:43
thats not what went wrong on my end. the following OS tweaks fixed the problem
for me. try em out
echo “10152 65535″ > /proc/sys/net/ipv4/ip_local_port_range
sysctl -w fs.file-max=128000
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.core.somaxconn=250000
sysctl -w net.ipv4.tcp_max_syn_backlog=2500
sysctl -w net.core.netdev_max_backlog=2500
ulimit -n 10240
commands taken from http://nichol.as/benchmark-of-python-web-servers
Original comment by justquick
on 18 Apr 2011 at 2:20
OK, so it seems there's no issue with gevent here.
Original comment by Denis.Bi...@gmail.com
on 20 Dec 2011 at 5:57
[deleted comment]
[deleted comment]
Migrated to http://github.com/SiteSupport/gevent/issues/18
Original comment by Denis.Bi...@gmail.com
on 14 Sep 2012 at 10:51
Original issue reported on code.google.com by
justquick
on 19 Mar 2010 at 2:46