nagios-cvs: Too many open files?
Ethan Galstad
nagios at nagios.org
Thu Feb 8 18:20:46 CET 2007
Gaspar, Carson wrote:
>
>
>> -----Original Message-----
>> From: nagios-devel-bounces at lists.sourceforge.net
>> [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf
>> Of Ethan Galstad
>> Sent: Wednesday, February 07, 2007 9:31 AM
>> To: Nagios Developers List
>> Subject: Re: [Nagios-devel] nagios-cvs: Too many open files?
>
> ...
>
>> LSOF returns entries for files that have already been deleted
>> on my system...
>>
>> nagios 4034 nagios DEL REG 3,1 1141972
>> /usr/local/nagios/tmp/nagios2e8Q7h
>>
>>
>> Looks like the kernel must keep references to these files even
>> after they've been removed. This appears to be true based on
>> an article I just found:
>>
>> http://www.linux.com/article.pl?sid=06/10/30/1652211
>>
>> There's probably a way to tweak the kernel's behavior into
>> immediately releasing these files once they've been deleted.
>> Normally the kernel keeps references to deleted files in
>> memory (at least for a while) until the process that deleted
>> them exits.
>>
>> Any kernel gurus out there have a solution to this?
>
> Not possible. The file is still being accessed, so the file still exists
> (if it didn't, you couldn't access it), so the kernel has to know about
> it. If you don't want a kernel reference, and you're done with the file,
> close the fd.
>
Yeah, I think you're right. I may have just found a bug, so I'll
followup to Gerd's most recent message...
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Developers
mailing list