PHP 4.0 Bug #4618: php does not honor max memory size. It grows until Linux has no more memeory.

From: Date: Fri, 26 May 2000 17:59:40 +0000
Subject: PHP 4.0 Bug #4618: php does not honor max memory size. It grows until Linux has no more memeory.
Groups: php.dev 
Request: Send a blank email to php-dev+get-19531@lists.php.net to get a copy of this message
From: greg.morse@telus.com Operating system: Linux RH 6.1/6.0 PHP version: 4.0 Release Candidate 2 PHP Bug Type: Performance problem Bug description: php does not honor max memory size. It grows until Linux has no more memeory. <? $max=100000; 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"; } ?> Run this script then watch php memeory size with the ps -eo command. PHP has been config'd with a max of 8MB. Our machines have 40, 64, and 128 MB. We have this probelm with php3, and php4, both as a DSO for APAche and as a standaolone cgi.

« previous php.dev (#19531) next »