RE: [PHP-DEV] PHP Does not honor memeory Limit.

From: Date: Tue, 23 May 2000 19:05:03 +0000
Subject: RE: [PHP-DEV] PHP Does not honor memeory Limit.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19296@lists.php.net to get a copy of this message
Maybe this is a stupid answer, but whats $max set to? That might be why its looping.. if not ignore my comments :) Andrew Phillips, Programmer Blue Ribbon Internet 2708 Billingsley Road Columbus, Ohio 43235 Ph: 614.889.9800 Fax: 614.889.9082 Andrew@blueribboninternet.com http://www.blueribboninternet.com "we untangle the web" -----Original Message----- From: Greg Morse [mailto:greg.morse@telus.com] Sent: Tuesday, May 23, 2000 8:48 AM To: php-dev@lists.php.net Subject: [PHP-DEV] PHP Does not honor memeory Limit. PHP Support: We have taken to using PHP Extensively in some prodcution aplications. Just recently we came across this error. When we run the following php script, we use up all the memory in the machine. The symptoms are that there is no memory for any Linux process or daemon to run. We need to reboot to get out of it. We are running RH Linux 6.0/6.1. Our boxes have 40MB 64MB and 128 MB of RAM. PHP Limit is set to 8 MB. The memory allocated to the php process (as reported by the ps -eo command) keeps climbing as long as the loop is running. It is not limited to 8MB. The problem occurs on PHP3 and PHP4, for both a DSO in Apache and a separately compiled cgi process. Any ideas? Thank you. set_time_limit(4000); for ($n=0; $n<=$max; $n++) { $a[$n]="a$n "; $b[$n]="b$n "; $c[$n]="c$n "; $d[$n]="d$n "; $e[$n]="e$n "; $f[$n]="f$n "; $g[$n]="g$n "; $h[$n]="h$n "; echo "$a[$n] $b[$n] $c[$n] $d[$n] $e[$n] $f[$n] $g[$n] $h[$n]\n"; } ?>

« previous php.dev (#19296) next »