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

File descriptor leaks lead to dysfunctional app #24

Open
marthjod opened this issue Dec 5, 2015 · 0 comments
Open

File descriptor leaks lead to dysfunctional app #24

marthjod opened this issue Dec 5, 2015 · 0 comments

Comments

@marthjod
Copy link

marthjod commented Dec 5, 2015

Reproduce:

Run nodejs app.js and watch lsof -p <PID of app.js> | wc -l increase with every gallery refresh. When the number of open file descriptors exceeds ulimit -n, app.js will stop working with, e.g.

{"message":"File not found","error":null}
{"message":"File not found","error":{"errno":20,"code":"EMFILE","path":"resources/photos/studio-2015/IMG_7795.JPG"}}
{"message":"No album found","error":{"errno":20,"code":"EMFILE","path":"./resources/photos/studio-2015"}} 
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

1 participant