#18833 [Opn]: exec() : After throusands calls, causes "Unable to fork" error

From: Date: Fri, 09 Aug 2002 17:09:25 +0000
Subject: #18833 [Opn]: exec() : After throusands calls, causes "Unable to fork" error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16394@lists.php.net to get a copy of this message
 ID:               18833
 Updated by:       sander@php.net
 Reported By:      antoine.bajolet@tdf.fr
 Status:           Open
 Bug Type:         *General Issues
 Operating System: GNU/Linux 2.4.9 RH 7.1
 PHP Version:      4.2.1
 New Comment:

Can't reproduce. Might be a problem with your system.


Previous Comments:
------------------------------------------------------------------------

[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



Thread (14 messages)

« previous php.bugs (#16394) next »