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:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-11-17 09:22:19] [email protected]
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