Too many open files messages when tail

simdim

Explorer
Joined
Mar 12, 2019
Messages
75
Hi All,
I am getting

tail: inotify cannot be used, reverting to polling: Too many open files

System is set to:

fs.inotify.max_user_instances = 128
fs.inotify.max_user_watches = 8192


My usual solution would be just to set:

fs.inotify.max_user_watches=524288

fs.inotify.max_user_instances=524288


in /etc/sysctl.conf

and

sysctl -p

BUT, there must be a reason for why it is set to what it is set (or not)
 

Haldi

Cadet
Joined
Feb 28, 2024
Messages
8
Had the same issue when i tried to watch the Log from apps.
Is the default value to small? Or is there something wrong with the system and it's getting spamed?

Quadrupled the values for now. So at least i can check the logs.
sysctl -w fs.inotify.max_user_watches=32768
sysctl -w fs.inotify.max_user_instances=512
 
Top