Skip site navigation (1)Skip section navigation (2)
Date:      26 Apr 2005 15:37:12 -0400
From:      Lowell Gilbert <>
Subject:   Re: kern.openfiles
Message-ID:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
"Lauri Anteploon / ctrl-L" <> writes:

> I'm running FreeBSD 5.3-Release, with apache2, php5, icecast2 and sc_nsv.
> To my understanding some process is eating up the file handles (over couple
> of days the kern.openfiles has gone from 170 to 1700). Sooner or later this
> will result in "kernel: kern.maxfiles limit exceeded" errors.
> Is there a way to see wich application is holding most of these file handles
> and not releasing them?

You are looking for fstat(1).

There are some clever scripts around for making use of the output, but
I find that sort(1) is usually enough to help me quickly find a file hog.

Want to link to this message? Use this URL: <>