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

Too many orphaned processes on OSX in Rails #412

Closed
benaubin opened this issue Sep 29, 2016 · 2 comments
Closed

Too many orphaned processes on OSX in Rails #412

benaubin opened this issue Sep 29, 2016 · 2 comments
Labels

Comments

@benaubin
Copy link

benaubin commented Sep 29, 2016

See issue on the rails repo.

@e2 e2 changed the title You're breaking my laptop Too many orphaned processes on OSX in Rails Sep 29, 2016
@e2 e2 added the darwin label Sep 29, 2016
@e2
Copy link
Contributor

e2 commented Sep 29, 2016

This should be reported on https://github.com/thibaudgg/rb-fsevent

That's because Rails Spring listener creates the forks and rb-fsevent creates the processes.

Listen can't really do much here to fix this (as far as I know), unless the watchers aren't being closed properly.

There's also a quite recent commit like this: guard/rb-fsevent@c9deae0

So you may want to try different rb-fsevent versions (including earlier ones) - or even build a gem from the rb-fsevent master branch.

Also, Listen (or rb-fsevent) may be crashing - and not closing the processes for some reason.

You may want to try running Listen in debug mode with an environment variable like: export LISTEN_GEM_DEBUGGING=1 or export LISTEN_GEM_DEBUGGING=2.

You might want to check if the above code in rb-fsevent (for killing the process and closing the pipe) if it actually works.

@benaubin
Copy link
Author

@e2 don't really want to test it out, as I found a workaround, and I don't want to have to reboot.

@e2 e2 closed this as completed Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants