Ask a Question related to PHP Development, Design and Development.
-
michel dot jansens at ulb dot ac dot be #1
#25886 [Com]: failed to open stream: Too many open files in Unknown on line 0
ID: 25886
Comment by: michel dot jansens at ulb dot ac dot be
Reported By: padair at pntsi dot ca
Status: Bogus
Bug Type: *General Issues
Operating System: Solaris 8
PHP Version: 4.3.3
New Comment:
I've got exactly the same problem with the same setup. my fd limit has
been 256 for ages and I never had this problem with any php version
before 4.3.2
Besides none of my scripts use more than 10 fd at a time. How many does
PHP opens for its own use? how many does Apache do?
It seems to me that 256 is already quite high
Michel Jansens
Previous Comments:
------------------------------------------------------------------------
[2003-10-16 11:41:07] [email]jay@php.net[/email]
What is your open files limit set to?
Do 'ulimit -a' from a shell -- chances are it's set to
256. Try increasing that to 1024 by opening up /etc/system
as root and making changes to rlim_fd_cur and rlim_fd_max.
Just don't go higher than 1024.
You'll have to reboot your server (the actual machine, not
just the web server) for the changes to take effect.
See 'man -s 4 system' for details.
J
------------------------------------------------------------------------
[2003-10-16 00:10:22] padair at pntsi dot ca
Description:
------------
I am getting a "failed to open stream: Too many open files in Unknown
on line 0" error message.
I check similar bug reports but none seemed to apply. I already am
running 4.3.3 where this error was supposed to be fixed.
My config is Solaris 8, Apache 2.0.44, PHP 4.3.3.
My page pulls some simple snmp data and I have a META refresh tag at
the top that refreshes the page every 30 seconds. 99% of the time the
page is ok. Every now and then the error below shows. It goes away on
its own usually by the next refresh.
Actual result:
--------------
Warning: Unknown(/isp/www/pntsi/stats/snmp.php): failed to open stream:
Too many open files in Unknown on line 0
Warning: (null)(): Failed opening '/isp/www/pntsi/stats/snmp.php' for
inclusion (include_path='.:/usr/local/php4/lib/php') in Unknown on line
0
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=25886&edit=1[/url]
michel dot jansens at ulb dot ac dot be Guest
-
#25886 [Bgs]: failed to open stream: Too many open files in Unknown on line 0
ID: 25886 User updated by: padair at pntsi dot ca Reported By: padair at pntsi dot ca Status: Bogus Bug Type: ... -
#25886 [Opn->Bgs]: failed to open stream: Too many open files in Unknown on line 0
ID: 25886 Updated by: sniper@php.net Reported By: padair at pntsi dot ca -Status: Open +Status: ... -
#25886 [NEW]: failed to open stream: Too many open files in Unknown on line 0
From: padair at pntsi dot ca Operating system: Solaris 8 PHP version: 4.3.3 PHP Bug Type: *General Issues Bug description: ... -
#22416 [Bgs]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Updated by: thetaphi@php.net Reported By: jhalla at legion dot org Status: Bogus Bug Type: ... -
#22416 [Com]: failed to create stream: Too many open files in Unknown on line 0
ID: 22416 Comment by: jmorris at sunflower dot com Reported By: jhalla at legion dot org Status: Bogus Bug...



Reply With Quote

