Skip to content

EMFILE error appears in iojs v1.2.0 on Windows #3984

@miklen

Description

@miklen

In our Windows build environment we are opening a lot of files through the use of browserify and debowerify. Our build stopped working when we upgraded to the latest NodeJS, with an EMFILE error.

I reverted back to NodeJS 0.12.7 and the build works again. I started testing the different versions and found that the error started happning on iojs v.1.2.0 (iojs 1.1.0 runs our build with no errors).

The error I'm getting is this:

{ [Error: EMFILE: too many open files, open 'c:\Projekter\GitProjects\POS\bower_components\jqueryui\.bower.json']
  errno: -4066,
  code: 'EMFILE',
  syscall: 'open',
  path: 'c:\\Projekter\\GitProjects\\POS\\bower_components\\jquery-ui\\.bower.js
on',
  details: 'EMFILE: too many open files, open \'c:\\Projekter\\GitProjects\\POS\\bower_components\\jquery-ui\\.bower.json\'' }

In the versions of iojs and nodejs which are throwing the errors, I found that limiting the number of require calls in our app made it work again. Leaving out parts of the app is not really an option, so I hope someone can shed some light on this for me here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.moduleIssues and PRs related to the module subsystem.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions