Bug 49110

Summary: PHP makes http eats all memory
Product: [Retired] Red Hat Linux Reporter: Miguel Freitas <miguel>
Component: phpAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-13 20:44:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miguel Freitas 2001-07-13 20:44:50 UTC
Description of problem:
Our server is running squirrelmail 1.0.6 to provide webmail (it's
written in php). The amount of memory used by http process grows
indefinitely as the webmail is been used, taking more than 120MB
(reported by gtop) for 10 childs.


How reproducible:
Always

Steps to Reproduce:
1.Install & configure apache, php, squirrelmail (not include in RH)
  http://squirrelmail.sourceforge.net
  obs: Other php programs should trigger the same problem.
2.Use it by a few hours, days...
3.Check the memory utilization of http process


Actual Results:  The memory used by http, as reported by gtop, is always 
growing as the time goes. We saw up to 140MB when we had to restart the
http service to keep working.
It seems to have no upper bound value even for a constant number of 
http childs (10).

Expected Results:  As the childs just receive queries, open a imap 
conection, get and process the imap data, close imap and then to send 
back the response there is no reason for the memory utilization to grow
indefinitely.
We are using no persistent db connections, no ldap, nothing that
would keep some data between different queries to php code.

Additional info:

This look like a bug fixed in php 4.0.6:

- Fixed memory fragmention problem which could lead to web server
processes growing much more than they should. (Andi, Zend Engine)

We have installed php 4.0.6 from sources and now the memory 
utilization grows up to a value about 60Mb-70Mb (10 childs).

Comment 1 Miguel Freitas 2001-07-13 21:16:20 UTC
Oops...looks like php-4.0.6 is already at rawhide....
(last time I checked it was php-4.0.5)

Changing to resolved, ok?