Monitoring number of file descriptors
Posted on 2006-03-24
On a sun based system, I am running an expect script that after running for some number of iterations, crashes with a "sync byte read" error. We have found this to be that the limit number of file descriptors was too low (shown by "limit -n"), and upon increasing this limit the problem was solved.
I would like to monitor the number of file descriptors that are actually in use at any given time in order to determine how much we actually need to increase this limit by in order to be safe for the size job that we are running. I can not seem to find the right command.