|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12507 memory leak
Submitted: 2001-08-01 04:15 UTC Modified: 2001-10-02 18:31 UTC
From: sky dot xu at 51job dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
 [2001-08-01 04:15 UTC] sky dot xu at 51job dot com
I use mtrace to check, i found:
mtrace /www/libexec/ 

Memory not freed:
   Address     Size     Caller
0000000000        0  at 

Whether php-4.0.6 have memory leak?
Our site, when heavy load, web server memeory will be used up, and swap also be used heavily!
I have to restart apache , i will get much of memory, or after httpd auto restart, i have set :
MaxRequestsPerChild 10000 in httpd.conf.

I use mtrace to check php-4.0.4, it is no memory leak.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-01 04:18 UTC]
Would it be possible for you to provide more info?

What Linux distro?
What was your PHP configure line?
Did any other package move up in version between the 2 builds?
 [2001-08-01 04:34 UTC]
User says:

 I use redhat 6.2,but i upgrad kernel to 2.2.18.
 ./configure? --with-apxs=/www/bin/apxs? --with-oracle=/usr/local/oracle
 --with-oci8=/usr/local/oracle --with-mcrypt --enable-track-vars

I use same configure line in php4.04. and php4.0.6.

 [2001-08-18 22:04 UTC]
Does this happen with latest CVS snapshot:

 [2001-10-02 18:31 UTC]
No feedback, considered fixed. If problem still exists with
latest CVS snapshot, reopen with short reproducing script.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 20:03:37 2021 UTC