Skip to content

EMFILE: Error with large number of db #16

@Koldunz

Description

@Koldunz

Hello,
Thanks for the great work on nodejs packages mongodb-backup and restore. I'm currently using these two packages in my project.

I have some problems with large number of db. I try backup 100+ db in async.series. But I have error:
fs.js:60 throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs ^ Error: EMFILE: too many open files, open '/var/www/test/node_modules/mongodb-backup/dump/db_1/pages/577bc802fed786f67fdc43b3.bson' at Error (native)

The size of each base about 100 mb
Could you please have a look at it ?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions