ID: 30953 User updated by: brett_hollon at adp dot com Reported By: brett_hollon at adp dot com Status: Open Bug Type: Program Execution Operating System: Linux 2.4.18-27.8.0-5 PHP Version: 4.3.8 New Comment:
Further information. I have traced this to a file descriptor leak. It appears that a PHP script that is experiencing an error writing to a file is causing descriptor to not close. After an error occurs on the file (open for writing them the filesystem set read-only prior to the write attempt) The file seems to fail to close. Over time hundreds of file descriptors all pointing to the same file build up in the httpd process. Previous Comments: ------------------------------------------------------------------------ [2004-12-01 23:43:49] brett_hollon at adp dot com Description: ------------ After several days of uptime on our apache server, PHP system() calls will begin to fail with "Unable to fork" warnings. A stop and start of apache clears the issue. Our apache server is configured with a large number 70-80 of listen ports. Additional system configuration information: Apache: 1.3.31 RAM 1.2GB Dual XEON 2.0 GHz /proc/sys/fs/file-max 70000 ./configure' '--target=' '--enable-memory-limit' '--with-apxs=/adp/home/www_serv/bin/apxs' '--with-gd' '--with-zlib' '--with-zlib-dir=/releases/SW809/target/SW' '--with-jpeg' '--with-jpeg-dir=/releases/SW809/target/SW' '--with-png' '--with-png-dir=/releases/SW809/target/SW' '--with-freetype' '--with-freetype-dir=/releases/SW809/target/SW' '--with-pdflib=/releases/SW809/target/SW' '--with-enable-dba' '--with-cdb' '--with-curl=/releases/SW809/target/SW' '--with-pgsql' '--with-unixODBC' '--with-gdbm' '--with-xmlrpc' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30953&edit=1
