Hitting OSError: [Errno 24] Too many open files
See original GitHub issuePlaces this has surfaced:
- @catherinewu can reproduce reliably by running
pytest python_modules/libraries/dagster-dask/dagster_dask_tests/test_execute.py
(but I cannot) - @helloworld ran into it while clicking around dagit
- @yuhan ran into it while running dagster core tests
- @alangenfeld ran into it with graphql tests
It’s not clear that these are all related.
Here’s one way to reproduce:
ulimit 256
pytest -s python_modules/dagster-graphql/dagster_graphql_tests/graphql/
To observe file descriptors leaking, run this in one terminal:
pytest -s python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_config_types.py
and repeatedly run this in another terminal:
lsof -p $(ps -A | grep pytest | grep -v grep | awk '{print $1}') > $(date +"%s")
Observe that the number of open file descriptors given by lsof increases throughout the test, with about one new temporary directory sticking around per test.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Errno 24: Too many open files. But I am not opening files?
But the problem is, my entire code I didn't open any file. I suspect it could be caused by the api I query...
Read more >Getting OSError: [Errno 24] Too many open files #6727 - GitHub
Perhaps? 1. Create a new conda env and have JLab installed. Do not install any extension for other kernel. 2. Reduce your system...
Read more >How to Fix the 'Too Many Open Files' Error in Linux?
Very often 'too many open files' errors occur on high-load Linux servers. It means that a process has opened too many files (file ......
Read more >Resolving problems with too many open files
The problem is usually interimittent; the web server is continually closing files or sockets that it has opened, so the limit is reached...
Read more >Too many open files - by changing code in python3.7 - Biostars
I am trying to write two files using python, and I encountered the following error: OSError: [Errno 24] Too many open files: 'unmatch.site_3.txt'....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found it: https://dagster.phacility.com/D3472
https://dagster.phacility.com/D3472