#28113 [Com]: Memory is not freed with apache2handler SAPI

From: Date: Mon, 21 Jun 2004 10:18:41 +0000
Subject: #28113 [Com]: Memory is not freed with apache2handler SAPI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61145@lists.php.net to get a copy of this message
ID: 28113 Comment by: alex dot pagnoni at solarix dot it Reported By: magnus@php.net Status: Open Bug Type: Apache2 related Operating System: Linux PHP Version: 5CVS-2004-04-23 (dev) New Comment: I'm experiencing huge memory leaks on Apache1 too. Previous Comments: ------------------------------------------------------------------------ [2004-04-23 00:33:00] magnus@php.net 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

« previous php.bugs (#61145) next »