In Linux you can check /proc/
How do I monitor file descriptors in Linux?
Linux: Find Out How Many File Descriptors Are Being Used
- Step # 1 Find Out PID. To find out PID for mysqld process, enter: …
- Step # 2 List File Opened By a PID # 28290. Use the lsof command or /proc/$PID/ file system to display open fds (file descriptors), run: …
- Tip: Count All Open File Handles. …
- More about /proc/PID/file & procfs File System.
21 авг. 2007 г.
What are file handles in Linux?
A file descriptor (Unix, Linux) or a file handle (Windows) is the connection id (generally to a file) from the Operating system in order to perform IO operations (Input/Ouput of Bytes). … You can also see a file descriptor as an object that a process uses to: read or write to an open file. open network sockets.