Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am consistently running out of inotify resources, leading to errors along the lines of:

# tail -f /some/files
tail: inotify resources exhausted
tail: inotify cannot be used, reverting to polling

This eventually happens even if I grow the value of fs.inotify.max_user_watches. I suspect a locally installed Java application is consuming the resources, but I don't have the option of either fixing it or removing it.

Is there a way to set a limit on the number of inotify watches that can be consumed by a process?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.