-
Notifications
You must be signed in to change notification settings - Fork 106
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
fork: Resource temporarily unavailable occurring since installing #56
Comments
The error has to do with the process limit set on your system. I had the same yesterday, and I think it's puma-dev in combination with Spring, which watches a lot files. Try running |
I'm not saying this is a low limit, just saying it's not a puma-dev error. |
👍 |
I have no clue why rails launches billions of fsevent_watch processes and we should probably report it to rails because it's a bit silly. |
For reference, the same happens here: resque/resque#1483 |
Linking to the Rails issue that explains all this here: rails/rails#26158 A couple helpful commands if you're experiencing this: See all the events that are running:
See how many problems you got 😺
Kill your problems 💣
See your machine's limit
The real answer to solving for now is removing the listen gem and modifying your development.rb to not watch those directories. |
Here's a simple fix that worked for me (running Rails 5 on OS X): in |
Thank you, thank you, thank you! I'm developing a rails app along the lines of service oriented architecture and all the different pieces run as separate http processes. Developing under OSX has been horridly frustrating because I can't ever run all the pieces together. |
Because of the tendency of rb-fsevent (used by listen on mac) to create zombie processes and because of the rather low default number of allowed processes on mac (709), using the EventedFileUpdateChecker can cause the system to become unusable which can then only be fixed by a reboot (as kill requires forking). Please also see: * rails/rails#26158 * puma/puma-dev#56 (comment) * ledermann/docker-rails@148540d
Since installing puma-dev, apart from my development environment being better than it's ever been, I have noticed occasionally that I get:
fork: Resource temporarily unavailable
when trying any operation in Terminal. I first noticed it when tabs started crashing in Chrome.It could be something unrelated, but a quick google for that error leads to articles about
launchd
so it seems a bit co-incidental.I have no idea what's causing it ... a memory leak perhaps? I'm not all that sure where to start looking. For the most part, unloading and reloading puma-dev using
launchctl
solves it, or just quitting all apps and restarting them.Could be nothing, but I thought this might tip you off to something that I'm not able to suggest!
The text was updated successfully, but these errors were encountered: