Created
August 4, 2015 19:13
-
-
Save mrfyda/27a99c1c8a1924bf14d1 to your computer and use it in GitHub Desktop.
Show open file descriptors for Java processes
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
for pid in `pidof java`; do echo "$(< /proc/$pid/cmdline)"; egrep 'files|Limit' /proc/$pid/limits; echo "Currently open files: $(ls -1 /proc/$pid/fd | wc -l)"; echo; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment