Bug #30671 [Com]: "Unable to fork..."-error appears periodically
| From: | jtm dot moon dot forum dot user at gmail dot com | Date: | Wed, 16 Nov 2011 01:21:47 +0000 |
| Subject: | Bug #30671 [Com]: "Unable to fork..."-error appears periodically | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165211@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=30671&edit=1
ID: 30671
Comment by: jtm dot moon dot forum dot user at gmail dot com
Reported by: henning dot mohren at gmx dot de
Summary: "Unable to fork..."-error appears periodically
Status: Wont fix
Type: Bug
Package: Filesystem function related
Operating System: Solaris 9
PHP Version: 5.0.2
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-10-28 21:59:49] 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.
------------------------------------------------------------------------
[2004-11-17 09:22:19] tony2001@php.net
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.
------------------------------------------------------------------------
[2004-11-03 13:36:39] henning dot mohren at gmx dot de
Description:
------------
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 (http://www.sitepoint.com/forums/showthread.php?p=1245879#post1245879) for more details.
Expected result:
----------------
PHP should implement a workaround or call another Solaris function for invoking system commands.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=30671&edit=1