#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0

From: Date: Wed, 09 Apr 2003 20:09:59 +0000
Subject: #22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37464@lists.php.net to get a copy of this message
ID: 22416 Comment by: fillmore at nrcan dot gcc dot a Reported By: jhalla at legion dot org Status: Duplicate Bug Type: iPlanet related Operating System: Solaris 8 PHP Version: 4.3.0 Assigned To: wez New Comment: We have been having these problems also. I just installed php-4.3.2RC1.tar.gz to see if it helps, and the site started failing again within a half hour. I doubt that it's an open file limit in libc, because the site had only 14 hits on .php URLs before it started failing. Also, only two scripts were called, and they don't open any files. Here's the code in the most complicated of the two scripts: <? $x = 0; while (list($key, $val) = each($ORFiles)) { $x++; echo '<font face="Arial, Helvetica, sans-serif"> <A HREF="../../html/tables/pdf/options/'.substr($val, 0, strpos($val, "*")).'">' .substr($val,strrpos($val,"*")+1).'</A></font>&nbsp;<img SRC="../../gif/pdf.gif" WIDTH="17" HEIGHT="17" ALT="pdf"><BR>'; } ?> - Bob Fillmore Previous Comments: ------------------------------------------------------------------------ [2003-03-13 14:59:22] wez@php.net The issue is that the (brain-dead) solaris libc has a hard limit of 256 FILE*s. It is not possible to fopen() more files than that (although open() works just fine). Duplicate of Bug #20274. ------------------------------------------------------------------------ [2003-03-13 12:44:39] fowler at csufresno dot edu Still seeing it with php4-STABLE-200303121630. ------------------------------------------------------------------------ [2003-03-13 12:16:09] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-03-07 19:55:47] wez@php.net jflemer: Thats my guess. You could try running the "ab" (apache bench) tool to stress test the dev server and see if the fault occurs. ------------------------------------------------------------------------ [2003-03-07 11:34:39] jflemer@php.net Wez, I've just tried a recent snapshot (stable 200303051430), and I no longer see this warning. However, without deploying this on a production server, I cannot get the same hit rate, and the same variation on php script execution. Do you think that this was just a symptom of Bug #21713 (leaky descriptors on remote includes)? ------------------------------------------------------------------------ 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/22416 -- Edit this bug report at http://bugs.php.net/?id=22416&edit=1

« previous php.bugs (#37464) next »