Bug 49110 - PHP makes http eats all memory
PHP makes http eats all memory
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-07-13 16:44 EDT by Miguel Freitas
Modified: 2007-04-18 12:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-13 16:44:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Miguel Freitas 2001-07-13 16:44:50 EDT
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:

Steps to Reproduce:
1.Install & configure apache, php, squirrelmail (not include in RH)
  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
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 17:16:20 EDT
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?

Note You need to log in before you can comment on or make changes to this bug.