$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/nf If you like to make your limit permanent, use: $ sudo sysctl fs.inotify.max_user_watches=524288 When this limit is not enough to monitor all files inside a directory, the limit must be increased for Listen to work properly. $ cat /proc/sys/fs/inotify/max_user_watches You can get your current inotify file watch limit by executing: For example, Ubuntu Lucid’s (64bit) inotify limit is set to 8192. It’s not uncommon to encounter a system limit on the number of files you can monitor. Listen uses inotify by default on Linux to monitor directories for changes. The guard/listen repo has an informative post on the process. The fix was relatively straightforward: increase the number of watchers. There are, however, a fixed number of watchers, and evidently, my machine’s default (8192) was insufficient to the task. Watchers are part of the inotify Linux kernel subsystem 1 that extend the filesystem to notice changes and report on those changes to applications listening for them. I have been working on a Linux VM more recently, and one particularly annoying thing about it (there are a lot of little quirks that are frustrating) was that VSCode couldn’t monitor for changes because it was out of watchers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |