Re: Odd PHP memory issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Sep 2006 08:42:26 -0700
"Matthew H. North" <mnorth@xxxxxxx> wrote:

> 6) Resources (think database resources) are automatically freed by
> garbage collection when there are no more references to them

Resources can be "persistent". Try traversing a small tree and print
memory usage after each of several executions. If the memory is increasing
each time there is a memory leak in the extension. I doubt that is the
problem but it's a good test because it will show you with certainty
that data is in fact being released when the script exits. Then I would
scale down your test. Create a db connection and close it printing
memory usage along the way to make sure all memory is restored within
the script execution. If that doesn't work there are memory references
hanging around *somewhere*.

Mike

-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux