|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30671 "Unable to fork..."-error appears periodically
Submitted: 2004-11-03 13:36 UTC Modified: 2004-11-17 09:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: henning dot mohren at gmx dot de Assigned:
Status: Wont fix Package: Filesystem function related
PHP Version: 5.0.2 OS: Solaris 9
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: henning dot mohren at gmx dot de
New email:
PHP Version: OS:


 [2004-11-03 13:36 UTC] henning dot mohren at gmx dot de
Solaris restricts the use of popen() to 255 files, which is a low limit in case of servers. When using PHP's system() commands, PHP calls Solaris popen(). This fails, when too system-commands have been invoked.
See here ( for more details.

Expected result:
PHP should implement a workaround or call another Solaris function for invoking system commands.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-17 09:22 UTC]
Tune your Solaris instead. 
Values of rlim_fd_max and rlim_fd_cur can be changed with appropriate settings in /etc/system.
I doubt that PHP can implement any workaround for OS limit.
 [2011-10-28 21:59 UTC] jtm dot moon dot forum dot user at gmail dot com
This works for me.  php running within Apache (process name "httpd").
    sudo plimit -n 65536,1048575 $(pgrep 'httpd')
This increases the integer values allowed for new file descriptors.
 [2011-11-16 01:21 UTC] jtm dot moon dot forum dot user at gmail dot com
My previous comment about the plimit workround does not seem to be working consistently.  It worked for about 10 minutes and then I ran into problems again.  The process forks are only happening once or twice a minute.  So it's not that the new range for FD was used up within 10 minutes.

The only thing that seems to work is waiting a few minutes.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 09:01:33 2024 UTC