lkml.org 
[lkml]   [1999]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Out of Files
On Mon, Jun 21, 1999 at 04:43:43PM +0100, Alan Cox wrote:
> > At various points in time after I have booted I will get errors because
> > of too many open files. I find it hard to believe that within a few
> > hours of booting I have over 4000 files open.
>
> If you have programs leaking file handles its believable. You can find out -
> flip through /proc/[pid]/fd/ seeing if you have processes with lots of handles

Check also leaking mmap() regions; each one is associated to some
file descriptor, which may not be (anymore) in the process fd set!

cat /proc/[pid]/maps

I encountered apparent bug in opening of BSD DB 2.* B_TREE (and
possibly B_HASH) which leak one mmap() region on tmpfile() per
each database open... (glibc 2.1.1 as at RedHat 6.0)

> Same again
> Alan

/Matti Aarnio <matti.aarnio@sonera.fi>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.741 / U:1.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site