Re: PHP 4.0 Bug #8889: Memory is not being freed.

From: Date: Sun, 28 Jan 2001 06:23:37 +0000
Subject: Re: PHP 4.0 Bug #8889: Memory is not being freed.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-45275@lists.php.net to get a copy of this message
> It is not a leak exactly but more of a greed. It seems to be a > semi-intentional but not necessary thing. It seems that the way Zend/PHP is > allocating memory is not allowing it to be returned to the system. Once PHP > has some memory it will not let it go, but it will reuse it. So, if a > script takes up a good chunk of memory, it is never returned to the system > unless that httpd process is killed or dies. Right, this is standard. But this does not explain incremental memory usage. Memory is marked as free and re-used. It does not need to be returned to the system for it to be re-used. So the memory usage for any one process should never exceed the memory usage of your most memory hungry script. -Rasmus

« previous php.dev (#45275) next »