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

Projects with over 100 files or so throw an EMFILE error #1

Open
RickyRomero opened this issue Jun 8, 2012 · 6 comments
Open

Projects with over 100 files or so throw an EMFILE error #1

RickyRomero opened this issue Jun 8, 2012 · 6 comments
Assignees

Comments

@RickyRomero
Copy link

Solution is to rejigger handlers.js to use fs.readFileSync().

@RickyRomero
Copy link
Author

Actually, looks like my project is even bigger than readFileSync can handle. :-\

@robashton
Copy link
Owner

Okay - well this will need looking at - the file handles should be closed (I'm surprised you're getting this actually, I'm working on fairly large projects myself)

@robashton
Copy link
Owner

(And by need looking at, I'll look at it now :-))

@robashton
Copy link
Owner

I don't think this is an issue with large projects, I've done a test with over 1000 files and it works well.

There IS a bug here clearly - just don't know where! Very annoying

@RickyRomero
Copy link
Author

If it makes a difference, I'm on a superfast SSD. Might have something to do with it.

It looks like since everything is running asynchronously, it's opening hundreds of files at once and getting hung up.

@robashton
Copy link
Owner

That could cause it (crikey), although all of my machines are on SSD I'm currently on the MBA rather than my crazy beast - surprised in that case that the synchronous calls don't work as a fix.

I guess I can put a limit in to throttle the number of concurrent actions, shouldn't be too hard to code up.

@ghost ghost assigned robashton Jun 8, 2012
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

2 participants