php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4618 php does not honor max memory size. It grows until Linux has no more memeory.
Submitted: 2000-05-26 19:59 UTC Modified: 2000-06-14 22:15 UTC
From: greg dot morse at telus dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0 Release Candidate 2 OS: Linux RH 6.1/6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: greg dot morse at telus dot com
New email:
PHP Version: OS:

 

 [2000-05-26 19:59 UTC] greg dot morse at telus dot com
<?
$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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-14 20:26 UTC] andi at cvs dot php dot net
Did you configure PHP with --enable-memory-limit?

 [2000-06-14 22:15 UTC] andi at cvs dot php dot net
--enable-memory-limit solved the problem
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 11:02:27 2025 UTC