inotify_init error on launch (no other symptoms) |
||
Issue descriptionVersion: 52+, probably before OS: Linux Launching Chrome from the command line works as expected, but prints an error: [110233:110255:0816/155515:ERROR:file_path_watcher_linux.cc(264)] inotify_init() failed: Too many open files This happens regardless of: * official/stable Chrome vs custom-built dev Chromium * user-data-dir (so, adding to existing instances or creating new session) I haven't noticed any breakages, but IDK what it's actually for. CCing people who have vaguely relevant commits.
,
Aug 17 2016
I don't think Chrome is leaking inotify instances. I haven't verified, but I believe we create exactly one inotify instance per Chrome process that makes use of FilePathWatcher. We don't free that instance explicitly, but it should be reclaimed by the OS when the process dies. It'd be helpful if someone running into this problem could check what consumes all the inotify instances. A command like this should help cast some light: ls -l /proc/*/fd/* 2>/dev/null | grep inotify | sed -nre 's!^.*(/proc/([0-9]+)/fd/([0-9]+)).*$!\1 \2 \3!; T; p' | while read path pid fd; do echo "$path $(cat /proc/$pid/cmdline 2>/dev/null | tr '\0' ' ')"; done This displays the FDs for processes with open inotify instances. On my system, there are two inotify instances consumed by Chrome (both in the browser process). Not sure why there are two (maybe some library uses inotify in addition the chrome code?), but these two wouldn't explain exhaustion.
,
Aug 17 2016
Sorry for the FUD, I didn't check the code in depth and didn't notice Chromium was very spartan in its use of inotify handles. At the moment, running that command you suggested returns /opt/google/chrome/chrome 5 times (2 of which with --type=service). Most of the handles belong to /usr/bin/krunner, so KDE may be leaking handles (or just using them too much).
,
May 14 2017
I raised fs.inotify.max_user_watches from 8192 to 1000000 and still see the same message (no other symptoms, though).
,
May 17 2017
Oh, duh, raising fs.inotify.max_user_instances instead fixes this for me. It looks like Sublime Text (tested: 3128) likes to use a lot of inotify instances.
,
Aug 21
Archiving old bugs that haven't been actively assigned in over a year. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue. Thanks! |
||
►
Sign in to add a comment |
||
Comment 1 by raphael....@intel.com
, Aug 17 2016