-
-
Notifications
You must be signed in to change notification settings - Fork 120
Symfony server "watching" too many files (too many open files exception) #497
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
Comments
Do you happen to use the workers feature that is watching directories to restart processus? |
Right now I can't reproduce it as I only see a fairly reasonable amount of opened files for the $ lsof / | awk '{print $1, $2}' | \sort | \uniq -c | \grep symfony
4 symfony 593
8 symfony 95503 Looking at the details I only see mostly expected results with log and configurations files opened: $ lsof / | \sort | \grep ^symfony
symfony 593 tucksaun 9u REG 1,15 0 9556057 /Users/tucksaun/.symfony5/log/proxy.log
symfony 593 tucksaun 10r REG 1,15 574 267464 /Users/tucksaun/.symfony5/proxy.json
symfony 593 tucksaun cwd DIR 1,15 640 2 /
symfony 593 tucksaun txt REG 1,15 29477762 2265202 /opt/homebrew/Cellar/symfony-cli/5.9.1/bin/symfony
symfony 95503 tucksaun 11u REG 1,15 1417 9725877 /Users/tucksaun/.symfony5/log/2b298b2015661d81fcd2d5dcb5ddbe7e15d7b653.log
symfony 95503 tucksaun 12r REG 1,15 7 9725876 /Users/tucksaun/.symfony5/var/status-4220519109
symfony 95503 tucksaun 19u REG 1,15 441 9725880 /Users/tucksaun/.symfony5/log/2b298b2015661d81fcd2d5dcb5ddbe7e15d7b653/53fb8ec204547646acb3461995e4da5a54cc7575.log
symfony 95503 tucksaun 20r REG 1,15 30 1371172 /Users/tucksaun/[REDACTED]/php.ini
symfony 95503 tucksaun 21u REG 1,15 441 9725880 /Users/tucksaun/.symfony5/log/2b298b2015661d81fcd2d5dcb5ddbe7e15d7b653/53fb8ec204547646acb3461995e4da5a54cc7575.log
symfony 95503 tucksaun cwd DIR 1,15 1952 1371142 /Users/tucksaun/[REDACTED]
symfony 95503 tucksaun txt REG 1,15 58184 9554401 /Library/Preferences/Logging/.plist-cache.FEizYBd4
symfony 95503 tucksaun txt REG 1,15 29477762 2265202 /opt/homebrew/Cellar/symfony-cli/5.9.1/bin/symfony |
None that I know of. Are they configured automatically? I just use |
Uh oh!
There was an error while loading. Please reload this page.
Hi! I'm running into an issue with too many files being opened by the server.
Sadly I could not take a screenshot of the exception, but it basically says "Too many open files".
When I inspect the number of files being opened by the Symfony process, this is what I get.
I was able to resolve this, by removing multiple
node_modules
directories and install them again. However I guess the process does not need to watch these files, right? I was wondering if this could be an issue inside symfony-cli? Thanks!System:
MacBook Pro 15 inch 2018
macOS Sonoma 14.4.1, Intel
The text was updated successfully, but these errors were encountered: