-
Notifications
You must be signed in to change notification settings - Fork 205
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
Too many open files, crash when serving static files. #108
Comments
I may have been running into 10.11's ulimit limit of only 256 open file descriptors. |
Yeah thats definitely it. With that error. You have to change your ulimit.
…On Jun 11, 2017 1:58 AM, "John Bolliger" ***@***.***> wrote:
I may have been running into 10.11's ulimit limit of only 256 open file
descriptors.
https://blog.dekstroza.io/ulimit-shenanigans-on-osx-el-capitan/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#108 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHmpE9qCKLu_D0dFzo0JYKqgjMHefPUks5sC54qgaJpZM4N2Uq_>
.
|
Is this still a valid issue. It looks like is more a server config issue. LMK |
It's invalid. So I suppose that 4K connections may be established sometimes. You need approx. limit of 8K+ of descriptor (4K connections and 4K handles to static files). https://stackoverflow.com/questions/880557/socket-accept-too-many-open-files |
closing this issue. |
When running a stress test against the example hello world app I got it to crash when trying to hit
/index.html
wrk -d 20 -t 4 -c 1015 http://0.0.0.0:4000/index.html
I'm thinking it could be an open file descriptor issue or something else, but I'll look into see if its a crystal-lang bug or something that we can tackle.
Possibly related - crystal-lang/crystal#780
The text was updated successfully, but these errors were encountered: