ID: 20274 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4CVS-2002-11-06 New Comment:
iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0. I get this error after php executes a script a few times. This doesn't seem to reproduce under any certain conditions, typically within a few hits though. I have 4 other configurations running flawlessly. 2x Solaris 2.6 iPlanet Enterprise 6sp1 and 2x Solaris 8 iPlanet Enterprise 6sp3. Could this be something with iPlanet's changes with sp4? Warning: Unknown(/local/home/cxadmin/content/Sites/Site01/ DocumentRoot/phpinfo.php): failed to create stream: Too many open files in Unknown on line 0 Warning: Unknown(): Failed opening '/local/home/cxadmin/content/Sites/Site01/DocumentRoot/ phpinfo.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 MEASURES ALREADY TAKEN: recompile of the php module ('./configure' '--without-mysql' '--with-nsapi=/local/Netscape/iplanet/www6.0sp4' '--enable-track- vars' '--enable-libgcc' ) Upped the Hard File Descriptor to 7554 explicitly set include path, session.save path, and safe_mode ENVIRONMENT: We have this running with out a hitch on two other boxes, under a similar config, with the exception of there are two instances of iPlanet running on the box that keeps crashing. CODE: // Logic To Decide Which Image To Include $DESIGN; if ($SEL == 1) { $DESIGN="design_1.jpg"; } else if ($SEL == 2) { $DESIGN="design_2.jpg"; } else if ($SEL == 3) { $DESIGN="design_3.jpg"; } else if ($SEL == 4) { $DESIGN="design_4.jpg"; } else if ($SEL == 5 ) { $DESIGN="design_5.jpg"; } else { $DESIGN="design_6.jpg"; } //Email Headers $headers .= "From: ".$FNAME."<".$FEML.">\n"; $headers .= "X-Sender: <".$FEML.">\n"; $headers .= "X-Mailer: <".$FNAME.">\n"; $headers .= "Return-Path: <".$FEML.">\n"; $headers .= "Content-Type: text/html"; // Display Header Content $Message ="<TABLE WIDTH=548 Height=466 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor=#990000>\n"; $Message .="<tr colspan=3 valign=middle>\n"; ...Other $Message Code Ommitted to save space //Mail function (variables are passed from the from on the previous page) Globals are set to on mail($TEML, $TNAME.", You Have An Message From ".$FNAME, $Message, $headers); Previous Comments: ------------------------------------------------------------------------ [2003-01-21 19:14:06] [EMAIL PROTECTED] Increasing file descriptors only delays the problem. Our script to monitor the problem reports the following: Monitoring http://our.site.com Attempting to contact instance, try # 0 Web server successfully contacted Too many open files being reported. Likely PHP problem ... =-=-=-=-=-=-=-=-=-=-= HTML RETURNED =-=-=-=-=-=-=-=- HTTP/1.1 200 OK Connection: close Date: Wed, 22 Jan 2003 00:50:00 GMT Server: Netscape-Enterprise/6.0 Content-Type: text/html Client-Date: Wed, 22 Jan 2003 00:50:01 GMT Client-Peer: 192.10.1.2:80 X-Powered-By: PHP/4.3.0 <br /> <b>Warning</b>: Unknown(/site/web/index.php): failed to create stream: Too many open files in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: Unknown(): Failed opening '/site/web/index.php' for inclusion (include_path='.:/usr/local/lib/php') in <b>Unknown</b> on line <b>0</b><br /> Shutting down server with script: /web/https-web-server/stop Restarting server with script: /web/https-web-server/start done. Attempting to contact instance, try # 1 Web server successfully contacted PHP problems resolved by restarting web server Where can I go from here? ------------------------------------------------------------------------ [2002-12-27 01:00:04] [EMAIL PROTECTED] No feedback was provided for this bug for over 2 weeks, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-12-11 17:12:32] [EMAIL PROTECTED] Please try increasing your kernel file descriptor limit ------------------------------------------------------------------------ [2002-12-11 13:57:32] [EMAIL PROTECTED] I get the same error message "failed to create stream: Too many open files in Unknown on line 0" and "for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0" I have php4.3.0RC2 and iplanet6 SP5. I opened the bug #20653. I was told to compile the latest php on my system and you send me php4.4.0-Dev. But I did not wanted to put Dev on the production box so I downloaded php4.3.0rc2 off of php.net site and installed it on my test box. I tested it for 10 days it worked fine. But now that I compiled the same thing on the production box I get the above error messages. What should I do? ------------------------------------------------------------------------ [2002-12-01 04:43:02] [EMAIL PROTECTED] [EMAIL PROTECTED]: Can you try increasing your kernel file descriptor limit (Try doubling it)? (Don't ask me how; I don't have Solaris). It's possible that PHP just uses more files concurrently than it used to, however, it could also be a leak. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20274 -- Edit this bug report at http://bugs.php.net/?id=20274&edit=1