Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to watch the number of file descriptors being used at any given time on a machine running Solaris 2.5.1. Is there any way to do this? Is it possible to find out what processes are responsible for using up the file descriptors? Thanks
  • Comment on How do monitor the usage of file descriptors on a system?

Replies are listed 'Best First'.
Re: How do monitor the usage of file descriptors on a system?
by Yohimbe (Pilgrim) on Jan 26, 2001 at 22:02 UTC
    Perl itself does not do much in the way of deep OS level monitoring, mostly because its completely impossible to maintain. But, I believe some variation of lsof (from sunsite) run as root will be your easiest route to finding it. http:More info here
    --
    Jay "Yohimbe" Thorne, alpha geek for UserFriendly
Re: How do monitor the usage of file descriptors on a system?
by lhoward (Vicar) on Jan 26, 2001 at 22:47 UTC
    As mentioned above, this isn't a Perl problem.

    But you shood look for the lsof tool. It'll do exactly what you want (it tells you what processes have what filehandles open and a whole lot more).