Created
March 22, 2022 13:19
-
-
Save flrichar/2c07dbcf90b3e17e7e16276f32b091fe to your computer and use it in GitHub Desktop.
inotity count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find /proc/*/fd -lname anon_inode:inotify | | |
cut -d/ -f3 | | |
xargs -I '{}' -- ps --no-headers -o '%p %U %c' -p '{}' | | |
uniq -c | | |
sort -nr | |
## check for max_user_watches and/or max_user_instances |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment