-
Notifications
You must be signed in to change notification settings - Fork 252
osx watcher limit #89
Comments
We currently use kqueue on OS X which is limited to 10,240 open file descriptors (number of files watched). I found this article to increase the limit but I haven't tried to do so myself: |
hm... thanks for responding. I'm currently creating one watcher that watches 28 unique directories. It's throwing the "to many files open" error on mac osx. This doesn't seem anywhere close to the limit? The directories aren't big at all, so I'm unsure why this would happen. |
File descriptors are used for other things too, even if you're only using a few hundred. I'm not aware of any other limits besides # of files. One thing you might check is to ensure you aren't watching hidden directories like fsnotify currently watches all the files in the directories you specify. I'm currently investigating what can be accomplished by just watching directories: It's also possible that someone will contribute an FSEvents adapter #54 which is geared for watching directory structures. Sorry I don't have an immediate solution for you. |
From the Watchman README |
Just to throw this out there, node's gaze (https://github.com/shama/gaze#errors) library detects In my case, I want to know if any file in a directory changes, with the potential for large numbers of files. It looks like I'll need to build my own wrapper for |
@pifantastic Based on the discussions around inclusion of os/fsnotify in standard library, I suspect a separate polling package would be best, but you can bring it up on the golang-dev list if you like. The event structure and API are sure to change from what we have now: https://goo.gl/MrYxyA |
Is there currently a work around for this osx watcher limit?
The text was updated successfully, but these errors were encountered: