You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,4 +262,28 @@ If it still doesn't work – [file an issue](https://github.com/javascript-tutor
262
262
263
263
Please pull the very latest git code and install latest NPM modules before publishing an issue.
264
264
265
+
## Linux: inotify and monitored files
266
+
267
+
The server's tools use [inotify](https://en.wikipedia.org/wiki/Inotify) by default on Linux to monitor directories for changes. In some cases there may be too many items to monitor.
268
+
269
+
_*!* Samples code below work correctly for Ubuntu_.
270
+
271
+
You can get your current inotify files watch limit by:
272
+
273
+
```sh
274
+
$> cat /proc/sys/fs/inotify/max_user_watches
275
+
```
276
+
277
+
When this limit is not enough to monitor all files, you have to increase the limit for the server to work properly.
278
+
279
+
You can set a new limit temporary by:
280
+
281
+
```sh
282
+
$> sudo sysctl fs.inotify.max_user_watches=524288
283
+
$> sudo sysctl -p
284
+
```
285
+
286
+
It is very important that you refer to the documentation for your operating system to change this parameter permanently.
0 commit comments