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

EMFILE error while watching large directories on OS X #2

Open
Aintaer opened this issue Mar 19, 2013 · 1 comment
Open

EMFILE error while watching large directories on OS X #2

Aintaer opened this issue Mar 19, 2013 · 1 comment
Milestone

Comments

@Aintaer
Copy link
Owner

Aintaer commented Mar 19, 2013

As seen in issue #1, watching a large directory/many subdirectories runs into a EMFILE error. This error is thrown by node when attempting to call fs.watch() after all file descriptors allotted per-process runs out. This is usually not an issue, but OS X sets a default per-process file descriptor limit of 256.

Node has been aware of this issue, see nodejs/node-v0.x-archive#2479

@Aintaer
Copy link
Owner Author

Aintaer commented Mar 19, 2013

The only solution that would suffice, save a completely rewrite of lib/watcher to split into multiple processes, is the one increasing the file descriptor per process limit on OS X nodejs/node-v0.x-archive#2479 (comment)

Otherwise, I'll mark this for 0.3 to handle multi-process watching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant