Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Error: EMFILE: too many open files #550

Open
cjblomqvist opened this issue Jan 2, 2020 · 0 comments
Open

Error: EMFILE: too many open files #550

cjblomqvist opened this issue Jan 2, 2020 · 0 comments
Assignees

Comments

@cjblomqvist
Copy link

I'm running node using Visual Studio Community on Windows, and get a lot of

Error: EMFILE: too many open files

errors. More specifically, most trigger a

SourceMaps: could not preload for generated script

error. It's well known that you shouldn't try to open too many files simultaneously on Windows. Preferably, this would be refactored so that this is not parallelized to extreme (the default ceiling is 10k I believe?).

A suggestion is to use https://www.npmjs.com/package/graceful-fs instead of the built in fs package in utils: https://github.com/microsoft/vscode-chrome-debug-core/blob/master/src/utils.ts#L360

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

No branches or pull requests

2 participants