Bug 49110 - PHP makes http eats all memory
Summary: PHP makes http eats all memory
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 7.1
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-13 20:44 UTC by Miguel Freitas
Modified: 2007-04-18 16:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-13 20:44:54 UTC
Embargoed:


Attachments (Terms of Use)

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?



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