File System - Watcher

> File (System, Transfer, Storage)

1 - Platform

1.1 - Client

1.2 - Linux

File system watcher requires inotify(7) facility. The sign of inotify availability in a system is a presence of /proc/sys/fs/inotify/ directory.

File system watcher is a single binary executable (fsnotifier) and can be downloaded directly from our Git repository.

cat /proc/sys/fs/inotify/max_user_watches

It can be raised by adding following line to the /etc/sysctl.conf file:

fs.inotify.max_user_watches = 524288

… and issuing this command to apply the change:

sudo sysctl -p

1.3 - Java

Nio has a watcher. Example: Vertx watcher

2 - Documentation / Reference