kern.openfiles

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Tue Apr 26 12:37:15 PDT 2005


"Lauri Anteploon / ctrl-L" <lauri at bitifarm.ee> 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.


More information about the freebsd-questions mailing list