miércoles, 22 de agosto de 2007

Find out how many file descriptors are being used

Administrating a box, you may wanted to find out what a processes is doing and find out how many file descriptors (fd) are being used. You will surprised to find out that process does open all sort of files:
=> Actual log file
=> /dev files
=> UNIX Sockets
=> Network sockets
=> Library files /lib /lib64
=> Executables and other programs etc

The best way to find out this information is use lsof command or explore /proc/PID directory for each running processes (including kernel processes), containing information about that process.

(more...)

No hay comentarios: