Re: PHP 5.1 memory leak?
| From: | Paul Scott | Date: | Wed, 07 Nov 2007 18:31:34 +0000 |
| Subject: | Re: PHP 5.1 memory leak? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264195@lists.php.net to get a copy of this message | ||
On Wed, 2007-11-07 at 15:21 -0200, Egon Hilgenstieler wrote:
> I have a really complex report which uses a tree-like structure of data
> base objects. Usually it consumes a lot of memory but that it is not
> really an issue because it is an intranet application with few users and
> a dedicated server for it. The problem is that the memory allocated by
> the script is never free'd!
>
The most probable cause of this is cyclic references, which in 5.1 are
not cleaned up very efficiently. Take a look through your code for them,
or upgrade to 5.2 or 5.3 when released, which has a very cool patch to
do just this.
--Paul