Do you have a question? Post it now! No Registration Necessary. Now with pictures!
February 22, 2007, 3:34 pm
rate this thread
I am using an adapted (CLI) version of the mediawiki wiki->HTML parser
on several thousand articles. Because of performance, we don't want to
start the php interpreter for each article, so we loop over articles
in the php script calling the parser.
The problem is that some memory is not freed, and for about 100
the memory usage increased by about 10M. We recreate the Parser-Object
in each iteration to avoid accumulation of article-data, but maybe
are still references to some or all of this. Is there a way to make
that there are no references to $parser (or parts of it) so that it
Can I recursively free memory of an object including all subobjects?
Finally, is there a way to debug memory usage (display by object)?
- » error_reporting and session.save_path have random values
- — Previous thread in » PHP Scripting Forum