When I try to tail -f catalina.out
, I get the error:
tail: inotify cannot be used, reverting to polling: Too many open files
I tried the answer in this post: Too many open files - how to find the culprit
lsof | awk '{ print $2; }' | sort -rn | uniq -c | sort -rn | head
When I ran the above command, the output was
17 6115
13 6413
10 6417
10 6415
9 6418
9 6416
9 6414
8 6419
4 9
4 8
I don't see any process having 1024 files open. Isn't the number of files open 17,13,10,10,9? Or am I understanding it wrong? And all these were bash,sshd,apache2, tomcat had number 4.
I also did lsof | grep tail | wc -l
which returned 20
.
These numbers aren't huge, so why does tail -f catalina.out
fail?