Skip to content

EMFILE: too many open files, watch Nodejs 11.8 #25856

Description

@tqwhite
  • 11.8.0:
  • Darwin qbook 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
  • ??

nodemon works great on 10.15. When I switch to see if my application
works on @latest, nodemon crashes. (My application works just fine when run
with Nodejs alone.)

The specifics...

Three of these:

node[17033] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)

Then this:

[nodemon] Internal watch failed: EMFILE: too many open files, watch

Other of my development contexts show the same result. Nodejs 10.15 supports nodemon.
Nodejs 11.8 crashes it.

In all cases, nodemon is monitoring fewer than 6000 files. I have tried limiting the
watched folders to see if I could find a lower limit but get a crash no matter what.
If I tell nodemon to ignore the entire code directory, it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.macosIssues and PRs related to the macOS platform / OSX.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions