Error: System limit for number of file watchers reached

Pear_Mh·2022년 8월 3일
0

문제

Linux에서 기본적으로 inotify를 사용하여 디렉토리 변경 사항을 모니터링하는데,

모니터링 할 수 있는 파일 수에 대한 시스템 제한이 발생하는 것

$ cat /proc/sys/fs/inotify/max_user_watches => inotify 확인

<임시로 늘리는 방법>
$ sudo sysctl fs.inotify.max_user_watches=524288
$ sudo sysctl -p

<영구적으로 늘리는 방법>
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
profile
Beyond the new era.

0개의 댓글