spring icon indicating copy to clipboard operation
spring copied to clipboard

fsevent_watch bomb on OSX.

Open sblackstone opened this issue 8 years ago • 4 comments

I've got a program I'm developing that uses background process that loads rails (delayed_job & clockwork). Having these two processes up plus a rails console causes 3 sets of fsevent_watchers to be started until I eventually hit the OS-level process limit and start getting "cannot fork" errors.

Perhaps perhaps the listen functionality could be moved into spring so that we only watch each file once?

sblackstone avatar Feb 16 '17 14:02 sblackstone

:penguin:

WaKeMaTTa avatar Feb 16 '17 16:02 WaKeMaTTa

@sblackstone I'm experiencing the similar problem after an upgrade to Rails 5 (the spring has been upgraded as well probably). Any idea what is causing it?

UPDATE: It might be something that is not directly related to spring in my case, but you may want to check this epic thread if you haven't yet: https://github.com/rails/rails/issues/26158

molefrog avatar Mar 05 '17 23:03 molefrog

@molefrog Rails itself has event watchers and each instance of Rails you start is going to start N worker processes to monitor files for changes.

I created this issue as a suggestion that spring could handle this so that there would be a max of one file process per file..

sblackstone avatar Apr 11 '17 13:04 sblackstone

try to upgrade listen gem like it is referenced here: https://github.com/rails/rails/pull/37896

kfiltschew avatar Dec 09 '19 13:12 kfiltschew