Here is a simple script that will show you a number of file handles (open files) used by each process on your Linux system:
ps -e|grep -v TTY|awk {'print "echo -n \"Process: "$4"\tPID: "$1"\tNumber of FH: \"; lsof -p "$1"|wc -l"'} > out; . ./out
Knowledge base on subjects I use in my day-by-day life. Unix, Linux, Mac OS X, VMware, Web, Java, Codfusion, Flex, etc.
Here is a simple script that will show you a number of file handles (open files) used by each process on your Linux system:
Posted by Unknown at 10:40 AM 2 comments
Labels: Linux