php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25886 failed to open stream: Too many open files in Unknown on line 0
Submitted: 2003-10-16 00:10 UTC Modified: 2003-10-16 11:41 UTC
From: padair at pntsi dot ca Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.3 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: padair at pntsi dot ca
New email:
PHP Version: OS:

 

 [2003-10-16 00:10 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-16 11:41 UTC] jay@php.net
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 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 18 06:01:29 2024 UTC