RTFM.WIKI

Ordnung muß sein. Ordnung über alles (18+)

Инструменты пользователя

Инструменты сайта


Stylesheet conf/userstyle.css not found, please contact the developer of "dokuwiki_2024" template.
linux:debian:nodejs_systemd

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
linux:debian:nodejs_systemd [2021/03/05 03:20] – создано - внешнее изменение 127.0.0.1linux:debian:nodejs_systemd [2025/03/05 19:00] (текущий) dx
Строка 126: Строка 126:
  
 Дополнительное чтиво для любопытных - [[https://jdebp.eu/FGA/systemd-house-of-horror/|The systemd house of horror. Examples of how people commonly use systemd in an egregiously wrong manner.]] Дополнительное чтиво для любопытных - [[https://jdebp.eu/FGA/systemd-house-of-horror/|The systemd house of horror. Examples of how people commonly use systemd in an egregiously wrong manner.]]
 +
 +===== Ошибки =====
 +
 +==== Error: ENOSPC: System limit for number of file watchers reached ====
 +
 +Проверить текущее значение
 +
 +<code bash>
 +cat /proc/sys/fs/inotify/max_user_watches
 +</code>
 +
 +Значения по-умолчанию (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>
 +
 +Создаём файл ''/etc/sysctl.d/99-inotify.conf''
 +
 +<code bash>
 +fs.inotify.max_user_instances=256
 +fs.inotify.max_user_watches=524288
 +fs.inotify.max_queued_events=32768
 +</code>
 +
 +применяем изменения
 +
 +<code bash>sysctl --system</code>
 +
 +Подробнее про [[https://linux.die.net/man/7/inotify|inotify(7)]] - Linux man page
 +
 +The following interfaces can be used to limit the amount of kernel memory consumed by inotify:
 +
 +**/proc/sys/fs/inotify/max_queued_events**
 +
 +The value in this file is used when an application calls [[https://linux.die.net/man/2/inotify_init|inotify_init]](2) to set an upper limit on the number of events that can be queued to the corresponding inotify instance. Events in excess of this limit are dropped, but an **IN_Q_OVERFLOW** event is always generated.
 +
 +**/proc/sys/fs/inotify/max_user_instances**
 +
 +This specifies an upper limit on the number of inotify instances that can be created per real user ID.
 +
 +**/proc/sys/fs/inotify/max_user_watches**
 +
 +This specifies an upper limit on the number of watches that can be created per real user ID.
  
 {{tag>linux debian systemd nodejs rsyslog}} {{tag>linux debian systemd nodejs rsyslog}}
linux/debian/nodejs_systemd.1614903623.txt.gz · Последнее изменение: 2021/03/05 03:20 — 127.0.0.1