Skip to content

Commit bedb5f3

Browse files
authored
Merge pull request #40 from contributorpw/tech_details_fswatches
Add technical details to README
2 parents 68eb948 + ee29ae7 commit bedb5f3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,28 @@ If it still doesn't work – [file an issue](https://github.com/javascript-tutor
262262
263263
Please pull the very latest git code and install latest NPM modules before publishing an issue.
264264
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.
287+
265288
--<br>Yours,<br>Ilya Kantor<br>[email protected]
289+

0 commit comments

Comments
 (0)