Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running out of file descriptors #10

Closed
edrex opened this issue Jun 9, 2010 · 3 comments
Closed

running out of file descriptors #10

edrex opened this issue Jun 9, 2010 · 3 comments

Comments

@edrex
Copy link

edrex commented Jun 9, 2010

I was running benchmarks of various async web frameworks ala http://brizzled.clapper.org/id/88.html.

I was using examples/hello and hitting http://localhost:8080/short (which serves a small file from disk via a standard blocking open() call) with 50 concurrent connections via ab. What of course happens is that the process quickly runs out of file descriptors.

I wonder if the authors of this software have ideas about how to do file io in a non-blocking way from within a fapws3 server? Node.js (which I was also benching) uses libeio with a thread pool to prevent io from blocking the main thread, and handles large concurrent loads easily. I haven't found anything similar for python, but I feel like it's probably out there somewhere.

@william-os4y
Copy link
Owner

Hello edrex,

I'm not able to reproduce the problem.

Look here under I've made 10000 requests and 500 in parallel.

I'm using epoll as backend, python 2.6, lastest release of Fapws3 in Master and libev 3.8

"
Server Software: fapws3/0.6
Server Hostname: 127.0.0.1
Server Port: 8080

Document Path: /short
Document Length: 12 bytes

Concurrency Level: 500
Time taken for tests: 3.017 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
"

@edrex
Copy link
Author

edrex commented Jun 14, 2010

hmm I'm not able to reproduce the issue now either

@william-os4y
Copy link
Owner

This is a parameter that is closely linked to your kernel's parameters.
Feel free to tune it accordingly.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants