Red Hat Bugzilla – Bug 49110
PHP makes http eats all memory
Last modified: 2007-04-18 12:34:44 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.
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.
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).
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?