Различия
Показаны различия между двумя версиями страницы.
| linux:debian:nodejs_systemd [2021/03/05 03:20] – создано - внешнее изменение 127.0.0.1 | linux:debian:nodejs_systemd [2025/03/05 19:00] (текущий) – dx | ||
|---|---|---|---|
| Строка 126: | Строка 126: | ||
| Дополнительное чтиво для любопытных - [[https:// | Дополнительное чтиво для любопытных - [[https:// | ||
| + | |||
| + | ===== Ошибки ===== | ||
| + | |||
| + | ==== Error: ENOSPC: System limit for number of file watchers reached ==== | ||
| + | |||
| + | Проверить текущее значение | ||
| + | |||
| + | <code bash> | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | Значения по-умолчанию (Debian 12) | ||
| + | |||
| + | <code bash> | ||
| + | sysctl fs.inotify | ||
| + | fs.inotify.max_queued_events = 16384 | ||
| + | fs.inotify.max_user_instances = 128 | ||
| + | fs.inotify.max_user_watches = 29464 | ||
| + | </ | ||
| + | |||
| + | Создаём файл ''/ | ||
| + | |||
| + | <code bash> | ||
| + | fs.inotify.max_user_instances=256 | ||
| + | fs.inotify.max_user_watches=524288 | ||
| + | fs.inotify.max_queued_events=32768 | ||
| + | </ | ||
| + | |||
| + | применяем изменения | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | Подробнее про [[https:// | ||
| + | |||
| + | The following interfaces can be used to limit the amount of kernel memory consumed by inotify: | ||
| + | |||
| + | **/ | ||
| + | |||
| + | The value in this file is used when an application calls [[https:// | ||
| + | |||
| + | **/ | ||
| + | |||
| + | This specifies an upper limit on the number of inotify instances that can be created per real user ID. | ||
| + | |||
| + | **/ | ||
| + | |||
| + | This specifies an upper limit on the number of watches that can be created per real user ID. | ||
| {{tag> | {{tag> | ||