[nycphp-talk] memory problems
Glenn Powell
glenn310b at mac.com
Thu Jun 4 17:43:36 EDT 2009
I had a similar problem and I added some old fashioned debug code
using "echo" and "memory_get_usage" to see where the leaks were.
It really helped, and it's very educational. (and fun...)
HTH
glenn
On Jun 4, 2009, at 5:23 PM, Rahmin Pavlovic wrote:
> On Jun 4, 2009, at 2:14 PM, John Campbell wrote:
>
>> My guess is that you are not calling imagedestroy() after you are
>> done
>> with the image handle. You have to manually free the memory with GD.
>
> We're destroying each handle after we're done with it, so I'm not
> exactly sure where the leak is, but it looks like it was introduced
> after we added the resizing methods. Might as well give ImageMagick
> a whirl. (I'd post the script, but have to edit it significantly
> first.)
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
More information about the talk
mailing list