Article ID: 120437, created on Mar 5, 2014, last review on Feb 2, 2016

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor

Question

The following messages is logged in container:

Wed Jan 29 15:11:01 2014 Error: Terminating since out of inotify watches.
Wed Jan 29 15:11:01 2014 Error: Consider increasing /proc/sys/fs/inotify/max_user_watches
Wed Jan 29 15:25:00 2014 Error: Terminating since out of inotify watches.
Wed Jan 29 15:25:00 2014 Error: Consider increasing /proc/sys/fs/inotify/max_user_watches

How to increase max_user_watches in container?

Answer

It is possible to change the max_user_watches limit on the hardware node only. This will raise the limit for all containers.

Increase the limit on the node:

[root@vz ~]# sysctl -w fs.inotify.max_user_watches=100000

To save it across reboots, redirect the output to sysctl configuration file:

[root@vz ~]# sysctl -w fs.inotify.max_user_watches=100000 >> /etc/sysctl.conf

Search Words

Terminating since out of inotify watches

/proc/sys/fs/inotify/max_user_watches

fs.inotify.max_user_watches

d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 a26b38f94253cdfbf1028d72cf3a498b e8e50b42231236b82df27684e7ec0beb 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF