filesystem - Too many open files - how to find the culprit - Ask Ubuntu
You can use lsof to understand who's opening so many files. Usually it's a (web)server that opens so many files, but lsof will surely help you identify the cause.
Once you understand who's the bad guy you can
- kill the process/stop the program
- raise the ulimit http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/
If output from lsof is quite huge try redirecting it to a file and then open the file
Example (you might have to Ctrl+C the first command)
lsof > ~/Desktop/lsof.log cat ~/Desktop/lsof.log | awk '{ print $2 " " $1; }' | sort -rn | uniq -c | sort -rn | head -20 vim ~/Desktop/lsof.log
Read full article from filesystem - Too many open files - how to find the culprit - Ask Ubuntu
No comments:
Post a Comment