Re: Still need help with some kind of memory leak in my php database program. General hints for php would help
| From: | Chris | Date: | Mon, 26 May 2008 01:40:46 +0000 |
| Subject: | Re: Still need help with some kind of memory leak in my php database program. General hints for php would help | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274680@lists.php.net to get a copy of this message | ||
Mary Anderson wrote:
> Thanks for responding.
>
> I hadn't realized memory_get_usage was available. That will be an
> enormous help.
>
> And I wasn't too clear in my note. Actually, it did not surprise me
> that the loop crashed the test code. I expected it to. What does
> surprise me is that the test code works with one call to the data base,
> but the same logic in the application crashes the system.
<random guess> Maybe you're accidentally calling the same code multiple
times?
You can use xdebug to work out what code is called and where it's called
from.
See http://www.xdebug.org/
Extremely handy little tool that one :)
--
Postgresql & php tutorials
http://www.designmagick.com/