Results 1 to 2 of 2
ulimit seems to be per process maximum, correct? I see my process running out of file descriptors and I know increasing the ulimit will fix it. Before I fix it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-29-2011 #1
- Join Date
- Aug 2008
lsof vs. cat /proc/sys/fs/file-nr vs. ulimit
1. how to check the maximum files for my pid?
2. how to list the current number of files open? (I assume my command above is correct for that on ls | wc -l?)
- 07-14-2011 #2
1.If I'm not wrong,you can't set max. fd limit per process basis , only per user basis.
2.Yes,ls /proc/pid/fd should work along with command likes lsof,fuser etc