Christian Nygaard
2007-Aug-21 11:59 UTC
[CentOS] Tracking how many open files a process has?
I'm getting a "Too many open files" on a fileserver. Is it possible to list how many open files each process has? If so how do you do that? Greets, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070821/3d8eb5d3/attachment.html>
Tony Mountifield
2007-Aug-21 12:03 UTC
[CentOS] Re: Tracking how many open files a process has?
In article <4d4321660708210459n34a90e06u630ea0381f8d18ac at mail.gmail.com>, Christian Nygaard <christiannygaard at gmail.com> wrote:> > I'm getting a "Too many open files" on a fileserver. > Is it possible to list how many open files each process has? If so how do > you do that?Have a look at the "lsof" command. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
Ross S. W. Walker
2007-Aug-21 13:37 UTC
[CentOS] Tracking how many open files a process has?
> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Christian Nygaard > Sent: Tuesday, August 21, 2007 7:59 AM > To: CentOS mailing list > Subject: [CentOS] Tracking how many open files a process has? > > I'm getting a "Too many open files" on a fileserver. > Is it possible to list how many open files each process has? > If so how do you do that?What you are looking for is 'lsof' -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.