Solaris check number of open file descriptors
For Solaris you can count open files by process For individual processes, you can run "pfiles" against the PID. See thegeekdiary for more. Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Solaris os, number of currently open files by the system without super user privilege Ask Question. Asked 2 years, 2 months ago. Active 2 years, 2 months ago. Viewed 1k times. OS info: Oracle Solaris Improve this question. Prabhakar Tayenjam Prabhakar Tayenjam 21 3 3 bronze badges. And perhaps you can look into the 'new' sstore command which provides access to the stats store.
What are you going to do with the number you get? This document describes the various methods available in Solaris 10 and Solaris 11 for setting the limit for the maximum number of open files per process.
Any user can decrease the hard limit but not increase it. This method of setting the file descriptor limit is no longer recommended in Solaris 10 and Solaris The other advantage is that processes of other projects are not affected. For changing the hard limit for project PRJ from the default to , use the following command:. The pfiles command displays the current limit of the number of open files for the process and more information about all currently open files of that process.
See the following example. Run the sleep seconds command in background and then run pfiles command on the PID of the sleep command. As you can see from the output, 3 files are opened by the commands sleep.
0コメント