Monday, March 05, 2007

Open Files

lsof -p process_id | wc -l

is just way too slow sometimes, I finally figured out a faster (and more accurate) way to quickly get a count (or list) of open files.

ls -l /proc/process_id/fd/ | wc -l

Thanks to http://www.netadmintools.com/art295.html