You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/12/05 23:31:41 UTC

DO NOT REPLY [Bug 37802] New: - File descriptor leak ?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37802>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37802

           Summary: File descriptor leak ?
           Product: Apache httpd-2
           Version: 2.0.55
          Platform: HP
        OS/Version: OSF/1
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jouvin@lal.in2p3.fr


>From quite a long time we had regular error message in main Apache error log 
file with apr_accept complaining about too many open files. I recently tried 
to troubleshoot the problem with version 2.0.54. And I upgraded today to 
2.0.55. This report is based on detailed observation with 2.0.55.

We collect different statistics about httpd processes twice per hour. We are 
running Apache with worker MPM. In normal conditions, we have only one slave 
httpd running (with a max of 35 threads, 10 spare threads, almost all idle).

It appears that the number of file descriptors used by httpd slave process is 
increasing permanently, never reaching a "stable" value. It starts at 230 and 
increases at a rate that looks proportionnal to the number of requests. When 
the server is not very busy this means at least an increment of 5 per minutes. 
The hard limit of 4096 is reached in less than a day...

If looking with lsof at the files opened by httpd, it appears a large number 
of file descriptor not linked to a file (probably a network connection) and 
around half this number of file descriptors to /etc/hosts and /etc/ipnodes 
(both). For example :

1539 file descriptors not linked to a file
 593 etc/hosts
 603 etc/ipnodes

Our Apache server loads PHP, mod_python and Subversion server, in addition to 
modules provided by Apache. From what I have seen in the logs, during low 
request rate period, there is almost exclusively pure HTML requests. I have 
also validated that doing Subversion transactions, even large ones, have no 
effect on the number of file descriptors used. Thus I suspect the problem is 
in core Apache.

Any idea on the reason of the problems or possible troubleshooting strategy ?

Thanks in advance.

Michel

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org