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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC