Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Eventually eats up all system resources on OSX #5

Closed
stouset opened this Issue Oct 22, 2010 · 5 comments

Comments

Projects
None yet
2 participants

stouset commented Oct 22, 2010

It looks like guard launches a new copy of fsevent_watch every time a file is changed. This eventually causes OSX to come to a screeching halt as it runs out of file descriptors.

stouset commented Oct 22, 2010

Hitting Cmd+S in TextMate repeatedly results in the following:

stouset 68806 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 63238 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 62611 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 61980 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 61361 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 60749 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 60158 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 59545 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 58003 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 56928 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 54146 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 42354 0.0 0.0 0 0 s006 Z+ 5:52PM 0:00.00 (fsevent_watch)
stouset 85583 0.0 0.0 0 0 s006 Z+ 5:50PM 0:00.00 (fsevent_watch)
stouset 75024 0.0 0.0 0 0 s006 Z+ 5:50PM 0:00.00 (fsevent_watch)

Owner

thibaudgg commented Oct 23, 2010

Ok I see, it's more a rb-fsevent related problem (guard 0.2.0 use it).
I think it's because stop method (http://github.com/thibaudgg/rb-fsevent/blob/master/lib/rb-fsevent/fsevent.rb) kill the process with HUP signal, KILL signal should some this problem right?

Owner

thibaudgg commented Oct 23, 2010

patched http://github.com/thibaudgg/rb-fsevent/commit/fe917d0acfd3ccf0f75a8fbbc5e3687e16d911a2
Can you manually install rb-fsevent and try it, thanks!

Owner

thibaudgg commented Oct 24, 2010

Ok sending KILL signal doesn't seem to solve this problem. I'll change how guard handle that.

Owner

thibaudgg commented Oct 25, 2010

Properly close rb-fsevent pipe after killed it
Closed by 5d0ec69.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment