Re: memory leak - how to find it?

From: Date: Thu, 03 Aug 2006 16:47:00 +0000
Subject: Re: memory leak - how to find it?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240060@lists.php.net to get a copy of this message
On Mon, July 31, 2006 6:23 am, Robin Getz wrote: > I am trying to debug a php script that I downloaded, which has a > memory > leak in it. > > I was looking for a way to find what variables were in php's memory, > and > what size, they were, but I couldn't find anything? > > The script is a off-line wiki conversion tool (walks through a wiki to > create a bunch of html files for off line viewing). As the tools walks > the > files, and does the conversion, I can see the memory consumption go up > and > up as it walks the files, until it hits the mem limit, and crashes. > > Any suggestions appreciated. When you run the tool, just give the command-line options to PHP to give it more RAM for memory_limit. :-) Finding the memory leak in a Wiki-walker could take forever. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#240060) next »