|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9584 NSAPI PHP eating up all memory on server
Submitted: 2001-03-06 12:48 UTC Modified: 2001-04-30 07:55 UTC
From: wongh at contrive dot com Assigned:
Status: Closed Package: iPlanet related
PHP Version: 4.0.4pl1 OS: Solaris 2.51
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.
Block user comment
Status: Assign to:
Bug Type:
From: wongh at contrive dot com
New email:
PHP Version: OS:


 [2001-03-06 12:48 UTC] wongh at contrive dot com
I have NSAPI PHP module installed with my Netscape Iplanet Web server 4.1SP3. It can run fine with all pages but then I checked memory usage thru "top" command, and it seems that the Memory used by the scripts are not returned after completing the script. This problem also happened when i used NSAPI PHP for Netscape Enterprise Server 3.63, but the problem was not as signifcant then.

After a few runs of php pages with database + ldap:
1) For NES 3.63 PHP NSAPI, it jumped from 20MB to 34MB
2) For NES 4.1SP3 PHP NSAPI, it jumped from 30MB to 65MB

Is there a memory leak for PHP NSAPI or is there a way to force PHP to release its memory? I have already set the memory limit to limit each script. (IT works), but still the 1-2MB memory I Allocate to the PHP is not freed up after use.

I am running it under an enterprise server and I can't have PHP eat up all the memory. It is imperative that i force php to relase it back for use, I know restarting webserver works, but I can't possibly reboot a production server frequently


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-11 20:09 UTC] wongh at contrive dot com
Seems that case has worsen since I last posted this problem.
On my development server which has max of 256MB has already used up to around 90MB for simply serving php pages using NES. I have other servers running on similar config running jsp/cgi and they only use to a max of around 80MB.

On the production server where we have 10CPUS + 10GB Ram. My other server are still running at max of 80MB but the PHP NES configuration has jumped to an enormous 350MB!

It seems that the amount of memory PHP consumes and NOT release is directly proportional to the Max Ram available.

I will need to implement a fix to force release of ran memory. Performance CAN be sacrificied for the force release of memory (running a PHP CGI method is not an option)
 [2001-03-29 09:53 UTC]
Does this happen with latest CVS snapshot from ?


 [2001-04-30 07:55 UTC]
No feedback

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 02:01:32 2024 UTC