ID: 28113 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Apache2 related Operating System: Linux PHP Version: 5CVS-2004-04-23 (dev) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-06-21 12:18:36] alex dot pagnoni at solarix dot it I'm experiencing huge memory leaks on Apache1 too. ------------------------------------------------------------------------ [2004-04-23 00:33:00] [EMAIL PROTECTED] Description: ------------ PHP does not free the memory it's using during and after a request when using apache2handler SAPI. apache2filter SAPI works fine. The memory it's using is however reused, but if I would send 500MB data and only have 256MB RAM, the OOM killer would start killing processes and apache when there are no more processes to kill (depending on OOM killer used). Reproduce code: --------------- <?php $string = ''; for ($i = 0; $i < 1024; $i++) $string .= 'A'; for ($i = 0; $i < (1024 * 200); $i++) { echo $string; flush(); } ?> Expected result: ---------------- Low memory usage Actual result: -------------- PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 8434 nobody 25 0 284m 238m 52m S 0.0 31.6 0:25.14 httpd ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28113&edit=1