4

I have an application which keeps giving me the following error.

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

I have already followed all the advice I've been able to find on web searches, and have changed the number of open file descriptors in all ways I know how. I've also rebooted the server. What might still be blocking my process from opening more files?

Some useful data:

# lsof | wc -l
8347
$ lsof -u <username> | wc -l
7533
$ cat /proc/sys/fs/file-max
98349
$ cat /etc/security/limits.conf
...
<username>       soft    nofile      32768
<username>       hard    nofile      65536
...
$ ulimit -Hn
65536
$ ulimit -Sn
32768
sffc
  • 417

1 Answers1

3

Open your terminal and type as

sysctl fs.inotify.max_user_watches

to check current limit. If you want to modify it then type in terminal as root

vim /etc/sysctl.conf

Then at the end add this following line

fs.inotify.max_user_watches = XXXXXX

In the XXXXXX place your desired value.

let me know if you are still facing any issues.

Raja G
  • 567