increasing fs.inotify.max_user_instances?

nttec

Renowned Member
Jun 1, 2016
95
0
71
41
I was trying to increase my fs.inotify.max_user_instances with this

Code:
sysctl fs.inotify.max_user_instances=2048
sysctl -p

but I still end up with 1024 when I do

Code:
ulimit -n

I run pvedaemon restart

but it doesnt do anything.

what am I missing here?

the reason why I want try to increase this is because my host server reboot and upon checking the logs I got error.

Code:
updating service status from manage failer: Too many open files
[libqb] error: couldn't create file from mmap
[libqb] error: qb_rb_open:pve2-request-1903-39010-1022: Too many open files (24)
[libqb] error: shm connection FAILED: Too many open files (24)
[libqb] error: Error in connection setup (1903-39010-1022): Too many open file (24)
 
Last edited:
Same as you tried with the inotify setting above.
 
In my experience, systemd is notorious for ignoring or overriding sysctl settings. You may need to edit /etc/systemd/system.conf and change the relevant setting, e.g., DefaultLimitNOFILE as described in systemd.exec

Changes should be picked up by issuing 'systemctl daemon-reexec'