linux check process limits
linux check process limits
When a Java app starts throwing “too many open files” in production, this is where I always start. /proc/PID/limits shows you the configured limits, and /proc/PID/fd shows you what files are actually open right now. Comparing the two usually tells you everything you need to know.
1
2
3
4
5
6
7
$ /proc/PROCESS_ID/limits
$ /proc/PROCESS_ID/fd
$ /proc/PROCESS_ID/fd | wc -l
This post is licensed under
CC BY 4.0
by the author.