Open Too Many Files (EMFILE Error) in Windows 7 Open Too Many Files (EMFILE Error) in Windows 7 windows windows

Open Too Many Files (EMFILE Error) in Windows 7


There is a limitation inside the VSC++ runtime. An application can only open 512 file descriptors through the runtime, although the value can be increased to 2048 if the application calls _setmaxstdio (which I think node doesn't). (This is a somewhat simplified explanation, for more details see here.) You can't change this limitation directly (you could only raise the 512 to 2048 if you would get node to call this function for you somehow).

However you wrote you are using node v0.10.31 which is pretty old. As far as I know (although I'm not 100% certain about that), node had in the meantime switched from using the VSC++ runtime for File I/O to native WinAPI calls which do not have this limitation, so you could try the latest node version if that's an option for you.