php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15965 memory limit not honoured
Submitted: 2002-03-08 20:14 UTC Modified: 2002-07-04 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: johnw at netnation dot com Assigned:
Status: No Feedback Package: Performance problem
PHP Version: 4.1.2 OS: linux 2.4.18 (RedHat 6.2)
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: johnw at netnation dot com
New email:
PHP Version: OS:

 

 [2002-03-08 20:14 UTC] johnw at netnation dot com
I had upgraded PHP from 4.0.6 to 4.1.2.  I have memory limit enabled, and is set 8MB.  php is compiled as a cgi.  With 4.1.2, however, it seems this is not being honoured.  I have seen numerous php processes using 24MB to 40MB.  I looked at the memory limit patch for 4.0.6 and notice that it is present in 4.1.2.  Has something else broken with memory limit?

'./configure' '--disable-static' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--prefix=/usr' '--with-config-file-path=/w/conf' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--enable-safe-mode' '--enable-memory-limit' '--with-mod_charset' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-versioning' '--with-db' '--with-ndb' '--with-db2' '--with-gdbm' '--with-mysql=/usr' '--with-gd=/usr/local' '--with-png-dir' '--with-jpeg-dir' '--with-xpm-dir=/usr/X11R6' '--with-ttf' '--with-cybercash=/usr/local/cybercash/c-api' '--with-mm' '--with-openssl' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-dbase' '--with-filepro' '--with-gettext' '--with-mcrypt' '--with-zlib' '--with-curl' '--enable-sysvsem' '--enable-sysvshm' '--enable-force-cgi-redirect' '--enable-trans-sid' '--enable-ftp' '--with-xml'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-09 02:05 UTC] derick@php.net
Can anybody on QA verify this, and can you try a cvs snapshot from snaps.php.net and see if it works there?

Derocl
 [2002-03-09 06:39 UTC] sander@php.net
Works fine for me, both with 4.2.0-dev and 4.3.0-dev, on Debian (Sid) Linux (2.4.17).
 [2002-03-09 16:39 UTC] johnw at netnation dot com
I tried out the php4.30-dev version from php4-200203090900.tar.bz2 and noticed that the cgi php processes still can hit 40MB or so.  The Zend Optimizer did not work with this PHP4 release, but should not be relevant to the memory utilization.  Could there be a memory leak?  The libraries/headers that php compiled against were unchanged from since 4.0.6.
 [2002-06-02 21:58 UTC] johnw at netnation dot com
This is taken from a RedHat 7.2 server with PHP 4.1.2 and Zend Optimizer 1.3.1

someuser   3391  0.0  0.3 42460 3128 ?        S    15:27   0:00 php
someuser   3426  0.0  0.3 42472 3128 ?        S    15:28   0:00 php
someuser   3428  0.0  0.3 42460 3128 ?        S    15:28   0:00 php

someuser  11825 11.0  0.4 42972 4716 ?        S    18:53   0:00 php4
 [2002-06-03 03:58 UTC] mfischer@php.net
Please provide a small, self-contained example which reproduces this problem.
 [2002-07-04 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC