Skip to content

Watching is prone to inotify handle exhaustion and EMFILE or ENOSPC errors #488

@kriszyp

Description

@kriszyp

If you run a lot of Harper instances, you may run out of watch handles. The quick local fix is:
sudo sysctl -w fs.inotify.max_user_instances=10000 (usually defaults to 512)
However, we might want a fallback mechanism in Harper for switching to polling if this error occurs (Chokidar mentions this as a possibility in its documentation, but doesn't automate this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions