#18833 [Fbk->NoF]: exec() : After throusands calls, causes "Unable to fork" error
| From: | sniper@php.net | Date: | Wed, 11 Sep 2002 16:51:57 +0000 |
| Subject: | #18833 [Fbk->NoF]: exec() : After throusands calls, causes "Unable to fork" error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19168@lists.php.net to get a copy of this message | ||
ID: 18833
Updated by: sniper@php.net
Reported By: antoine.bajolet@tdf.fr
-Status: Feedback
+Status: No Feedback
Bug Type: *General Issues
Operating System: GNU/Linux 2.4.9 RH 7.1
PHP Version: 4.2.1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2002-08-09 13:28:10] kalowsky@php.net
Marking as feedback
------------------------------------------------------------------------
[2002-08-09 13:09:25] sander@php.net
Can't reproduce. Might be a problem with your system.
------------------------------------------------------------------------
[2002-08-09 12:08:02] antoine.bajolet@tdf.fr
Hello,
I use php 4.2.1 as stand-alone binary to proceed batch file conversions
with exec() and other utilites (ie mapserver, shapelib and others)
The binary is compiled with postgresql and ming support.
The amount of files to convert is over 10,000.
Each file needs 8 (height) exec() to be converted.
After lots of loops (throusands but it varies), i obtain the error
message :
<br />
<b>Warning</b>: Unable to fork
[/usr/local/tdf/www/src/mapserver_3.5/shp2img -m
/usr/local/tdf/www/src/swfs/temp.map -o
/usr/local/tdf/www/src/swfs/13441_66.png -t -d base 13441] in
<b>/usr/local/tdf/www/src/shape_to_tvview.php</b> on line <b>336</b><br
/>
[.../...]
<br />
<b>Warning</b>: Unable to fork
[/usr/local/tdf/www/src/ming-0.2a/util/png2dbl
/usr/local/tdf/www/src/swfs/13441_66.png] in
<b>/usr/local/tdf/www/src/shape_to_tvview.php</b> on line <b>25</b><br
/>
<br />
When i ran a #top in the same time, i saw that pid numbers of executed
programs increases during execution of the script, and the exec did not
reuse pid numbers already used in the same script if the loop is too
quick (when the script converts small shapefiles).
the highest number i saw was
The total number of processes on the system was not over 71 in the same
time.
Any idea ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18833&edit=1